This commit is contained in:
dongzhiyong
2025-12-23 14:39:55 +08:00
parent c643be8548
commit 34685ead22
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -82,8 +82,10 @@ class Scanner extends Component
private function load_file(string $path): void
{
try {
opcache_invalidate($path);
opcache_compile_file($path);
if (function_exists('opcache_invalidate') && function_exists('opcache_compile_file')) {
opcache_invalidate($path);
opcache_compile_file($path);
}
require_once "$path";
if (!isset($_SERVER['PWD'])) {