force invalidate on opcache
authorAlan <alan@roojs.com>
Tue, 29 Mar 2022 05:04:02 +0000 (13:04 +0800)
committerAlan <alan@roojs.com>
Tue, 29 Mar 2022 05:04:02 +0000 (13:04 +0800)
HTML/Template/Flexy/Compiler/Flexy.php

index a1863cd..7050b95 100644 (file)
@@ -194,7 +194,6 @@ class HTML_Template_Flexy_Compiler_Flexy extends HTML_Template_Flexy_Compiler {
             }
             fwrite($cfp, $data);
             fclose($cfp);
-            
             chmod($file, 0775);
             // make the timestamp of the two items match.
             clearstatcache();
@@ -214,7 +213,7 @@ class HTML_Template_Flexy_Compiler_Flexy extends HTML_Template_Flexy_Compiler {
             touch($file, $mtime);
             
             if (function_exists('opcache_invalidate')) {
-                opcache_invalidate($file);
+                opcache_invalidate($file, true);
             }
             // why?? -- see output.block