- bugfix a call to clearAllCache() and other should clear all internal template object caches (forum topic 25828)

This commit is contained in:
uwetews
2015-12-15 03:37:13 +01:00
parent 80f872ac06
commit 017120c1ef
7 changed files with 12 additions and 36 deletions

View File

@@ -215,12 +215,9 @@ abstract class Smarty_CacheResource
*/
public function invalidLoadedCache(Smarty $smarty)
{
if (isset($smarty->_cache['template_objects'])) {
foreach ($smarty->_cache['template_objects'] as $key => $tpl) {
if (isset($tpl->cached)) {
unset ($smarty->_cache['template_objects'][$key]);
}
}
$smarty->_cache['isCached'] = array();
if (isset($smarty->ext->_subtemplate)) {
$smarty->ext->_subtemplate->tplObjects = array();
}
}
}