From 7e30c1dd823686eb8e59e6e1c171a751e8af2d49 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 23 Apr 2016 21:24:22 +0200 Subject: update smarty to version 3.1.29 --- library/Smarty/libs/sysplugins/smarty_internal_method_clearcache.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'library/Smarty/libs/sysplugins/smarty_internal_method_clearcache.php') diff --git a/library/Smarty/libs/sysplugins/smarty_internal_method_clearcache.php b/library/Smarty/libs/sysplugins/smarty_internal_method_clearcache.php index a923b3ae1..063c57cde 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_method_clearcache.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_method_clearcache.php @@ -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); } } \ No newline at end of file -- cgit v1.2.3