- move caching to Smarty::_cache

This commit is contained in:
uwetews
2015-08-23 01:38:42 +02:00
parent 6a26393099
commit 87985d1243
11 changed files with 43 additions and 69 deletions
@@ -220,9 +220,9 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
return 0;
}
// remove from template cache
foreach ($smarty->template_objects as $key => $_tpl) {
foreach ($smarty->_cache['template_objects'] as $key => $_tpl) {
if (isset($_tpl->cached) && $_tpl->source->uid == $tpl->source->uid) {
unset($smarty->template_objects[$key]);
unset($smarty->_cache['template_objects'][$key]);
}
}
}