- optimize invalidation of internal caches

This commit is contained in:
uwetews
2015-08-23 05:27:16 +02:00
parent 1ae11c26c0
commit 189b2af115
7 changed files with 45 additions and 32 deletions
@@ -34,7 +34,9 @@ class Smarty_Internal_Method_ClearAllCache
{
// load cache resource and call clearAll
$_cache_resource = Smarty_CacheResource::load($smarty, $type);
Smarty_CacheResource::invalidLoadedCache($smarty);
if ($smarty->caching_type != 'file') {
$_cache_resource->invalidLoadedCache($smarty);
}
return $_cache_resource->clearAll($smarty, $exp_time);
}