From 0b9e46d6ed780fd10bc34de0f3b6bb5558045bbe Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 23 Aug 2015 05:36:20 +0200 Subject: [PATCH] - bugfix do not cache template object for config files --- libs/sysplugins/smarty_template_compiled.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_template_compiled.php b/libs/sysplugins/smarty_template_compiled.php index f56190d8..fcbfeda5 100644 --- a/libs/sysplugins/smarty_template_compiled.php +++ b/libs/sysplugins/smarty_template_compiled.php @@ -162,7 +162,7 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base $_template->compiled->includes[$key] = isset($_template->compiled->includes[$key]) ? $_template->compiled->includes[$key] + $count : $count; } - if (!in_array($_template->source->type, array('eval', 'string')) && $_template->compiled->includes[$_template->source->type . ':' . $_template->source->name] > 1) { + if (!$_template->source->isConfig && !in_array($_template->source->type, array('eval', 'string')) && $_template->compiled->includes[$_template->source->type . ':' . $_template->source->name] > 1) { $_template->smarty->_cache['template_objects'][$_template->templateId] = $_template; } }