mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- bugfix a call to clearAllCache() and other should clear all internal template object caches (forum topic 25828)
This commit is contained in:
@@ -37,10 +37,7 @@ class Smarty_Internal_Method_ClearCache
|
||||
{
|
||||
// load cache resource and call clear
|
||||
$_cache_resource = Smarty_CacheResource::load($smarty, $type);
|
||||
if ($smarty->caching_type != 'file' && !isset($template_name)) {
|
||||
$_cache_resource->invalidLoadedCache($smarty);
|
||||
}
|
||||
|
||||
$_cache_resource->invalidLoadedCache($smarty);
|
||||
return $_cache_resource->clear($smarty, $template_name, $cache_id, $compile_id, $exp_time);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user