- load seldom used Smarty API methods dynamically to reduce memory footprint

This commit is contained in:
uwetews
2015-08-17 21:52:32 +02:00
parent eb7aa8fe92
commit 6cbcdf4d7b
65 changed files with 2552 additions and 1536 deletions
@@ -785,7 +785,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (strpos($variable, '(') == 0) {
// not a variable variable
$var = trim($variable, '\'');
$this->tag_nocache = $this->tag_nocache | $this->template->getVariable($var, null, true, false)->nocache;
$this->tag_nocache = $this->tag_nocache | $this->template->_getVariable($var, null, true, false)->nocache;
// todo $this->template->compiled->properties['variables'][$var] = $this->tag_nocache | $this->nocache;
}
return '$_smarty_tpl->tpl_vars[' . $variable . ']->value';