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 --- .../Smarty/libs/sysplugins/smarty_internal_extension_clear.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'library/Smarty/libs/sysplugins/smarty_internal_extension_clear.php') diff --git a/library/Smarty/libs/sysplugins/smarty_internal_extension_clear.php b/library/Smarty/libs/sysplugins/smarty_internal_extension_clear.php index c595214d8..00edc5abf 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_extension_clear.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_extension_clear.php @@ -114,14 +114,6 @@ class Smarty_Internal_Extension_Clear } } } - // remove from template cache - if (isset($smarty->_cache['template_objects'])) { - foreach ($smarty->_cache['template_objects'] as $key => $tpl) { - if (isset($tpl->cached) && $tpl->cached->filepath == (string) $_file) { - unset($smarty->_cache['template_objects'][$key]); - } - } - } $_count += @unlink((string) $_file) ? 1 : 0; if (function_exists('opcache_invalidate')) { opcache_invalidate((string) $_file); -- cgit v1.2.3