aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/sysplugins/smarty_internal_extension_clear.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/smarty/libs/sysplugins/smarty_internal_extension_clear.php')
-rw-r--r--include/smarty/libs/sysplugins/smarty_internal_extension_clear.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_internal_extension_clear.php b/include/smarty/libs/sysplugins/smarty_internal_extension_clear.php
index c595214d8..00edc5abf 100644
--- a/include/smarty/libs/sysplugins/smarty_internal_extension_clear.php
+++ b/include/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);