new _clearTemplateCache() method

This commit is contained in:
uwetews
2015-12-27 05:43:11 +01:00
parent ca48e93f00
commit 4dd8b0bf73

View File

@@ -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<br><br>too many errors\n";
exit();