1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 01:04:16 +02:00

Add lazy-loading option to WireInput, specified by $config->wireInputLazy=true;

This commit is contained in:
Ryan Cramer
2018-06-28 12:29:50 -04:00
parent b54b3bace1
commit cccc2d1161
5 changed files with 157 additions and 17 deletions

View File

@@ -831,7 +831,21 @@ $config->maxPageNum = 999;
*/
$config->wireInputOrder = 'get post';
/**
* Lazy-load get/post/cookie input into $input API var?
*
* This is an experimental option for reduced memory usage when a lot of input data is present.
*
* This prevents PW from keeping separate copies of get/post/cookie data, and it instead works
* directly from the PHP $_GET, $_POST and $_COOKIE vars.
*
* This option is also useful in that anything you SET to PWs $input->get/post/cookie also gets
* set to the equivalent PHP $_GET, $_POST and $_COOKIE.
*
* @var bool
*
*/
$config->wireInputLazy = false;
/*** 7. DATABASE ********************************************************************************/