- 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
+2 -5
View File
@@ -7,10 +7,7 @@
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
* @property integer $timestamp Source Timestamp
* @property boolean $exists Source Existence
* @property boolean $template Extended Template reference
* @property string $content Source Content
*
*/
class Smarty_Template_Source
{
@@ -217,7 +214,7 @@ class Smarty_Template_Source
$source = new Smarty_Template_Source($resource, $smarty, $template_resource, $type, $name);
$resource->populate($source, $_template);
if (!$source->exists && isset($_template->smarty->default_template_handler_func)) {
Smarty_Internal_Extension_DefaultTemplateHandler::_getDefault($_template, $source);
Smarty_Internal_Method_RegisterDefaultTemplateHandler::_getDefaultTemplate($source);
}
// on recompiling resources we are done
if (($smarty->resource_cache_mode & Smarty::RESOURCE_CACHE_ON) && !$resource->recompiled) {