mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- optimize invalidation of internal caches
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user