From 4dd8b0bf7346d67aca762e8e841ded6e95713717 Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 27 Dec 2015 05:43:11 +0100 Subject: [PATCH] new _clearTemplateCache() method --- .../sysplugins/smarty_internal_method_compilealltemplates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sysplugins/smarty_internal_method_compilealltemplates.php b/libs/sysplugins/smarty_internal_method_compilealltemplates.php index 3325cd8e..95a500c4 100644 --- a/libs/sysplugins/smarty_internal_method_compilealltemplates.php +++ b/libs/sysplugins/smarty_internal_method_compilealltemplates.php @@ -98,7 +98,7 @@ class Smarty_Internal_Method_CompileAllTemplates } // free memory unset($_tpl); - $_smarty->_cache['template_objects'] = array(); + $_smarty->_clearTemplateCache(); if ($max_errors !== null && $_error_count == $max_errors) { echo "\n

too many errors\n"; exit(); @@ -108,4 +108,4 @@ class Smarty_Internal_Method_CompileAllTemplates echo "\n
"; return $_count; } -} +} \ No newline at end of file