mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
new _clearTemplateCache() method
This commit is contained in:
@@ -98,7 +98,7 @@ class Smarty_Internal_Method_CompileAllTemplates
|
|||||||
}
|
}
|
||||||
// free memory
|
// free memory
|
||||||
unset($_tpl);
|
unset($_tpl);
|
||||||
$_smarty->_cache['template_objects'] = array();
|
$_smarty->_clearTemplateCache();
|
||||||
if ($max_errors !== null && $_error_count == $max_errors) {
|
if ($max_errors !== null && $_error_count == $max_errors) {
|
||||||
echo "\n<br><br>too many errors\n";
|
echo "\n<br><br>too many errors\n";
|
||||||
exit();
|
exit();
|
||||||
@@ -108,4 +108,4 @@ class Smarty_Internal_Method_CompileAllTemplates
|
|||||||
echo "\n<br>";
|
echo "\n<br>";
|
||||||
return $_count;
|
return $_count;
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user