force opcache invalidation

This commit is contained in:
uwetews
2015-12-27 05:42:30 +01:00
parent 1ebaac314c
commit ca48e93f00
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ class Smarty_Internal_Extension_Clear
} }
$_count += @unlink((string) $_file) ? 1 : 0; $_count += @unlink((string) $_file) ? 1 : 0;
if (function_exists('opcache_invalidate')) { if (function_exists('opcache_invalidate')) {
opcache_invalidate((string) $_file); opcache_invalidate((string) $_file, true);
} }
} }
} }

View File

@@ -111,7 +111,7 @@ class Smarty_Internal_Method_ClearCompiledTemplate
if ($unlink && @unlink($_filepath)) { if ($unlink && @unlink($_filepath)) {
$_count ++; $_count ++;
if (function_exists('opcache_invalidate')) { if (function_exists('opcache_invalidate')) {
opcache_invalidate($_filepath); opcache_invalidate($_filepath, true);
} }
} }
} }