From f6c130654cc58c75ec084a676bf0c5836c3b7c43 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sat, 27 Jul 2024 16:09:14 +0200 Subject: [PATCH] Fixing forced OpCache Invalidation on every call, which is resulting in fast raising wasted memory https://github.com/smarty-php/smarty/issues/1007 --- src/Template/Compiled.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Compiled.php b/src/Template/Compiled.php index caee87f32..5bdd9ac2a 100644 --- a/src/Template/Compiled.php +++ b/src/Template/Compiled.php @@ -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); }