Skip to content

Commit

Permalink
Fixing forced OpCache Invalidation on every call, which is resulting …
Browse files Browse the repository at this point in the history
…in fast raising wasted memory

smarty-php#1007
  • Loading branch information
stephanlueckl committed Jul 27, 2024
1 parent d6153d4 commit f6c1306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Template/Compiled.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private function loadCompiledTemplate(Template $_smarty_tpl) {
if (function_exists('opcache_invalidate')
&& (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1)
) {
opcache_invalidate($this->filepath, true);
opcache_invalidate($this->filepath, false);
} elseif (function_exists('apc_compile_file')) {
apc_compile_file($this->filepath);
}
Expand Down

0 comments on commit f6c1306

Please sign in to comment.