添加opcache重置

Signed-off-by: 向林 <as2252258@163.com>
This commit is contained in:
2025-12-22 06:57:32 +00:00
committed by Gitee
parent f89e8106f5
commit f9e23c59ef
+3
View File
@@ -82,6 +82,9 @@ class Scanner extends Component
private function load_file(string $path): void
{
try {
opcache_invalidate($path);
opcache_compile_file($path);
require_once "$path";
if (!isset($_SERVER['PWD'])) {
$_SERVER['PWD'] = APP_PATH;