mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
force opcache invalidation
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user