Explorar o código

update: fix opcache return null

Tokumeikoi %!s(int64=4) %!d(string=hai) anos
pai
achega
732edcad57
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Admin/ConfigController.php

+ 1 - 1
app/Http/Controllers/Admin/ConfigController.php

@@ -152,7 +152,7 @@ class ConfigController extends Controller
             abort(500, '修改失败');
         }
         if (function_exists('opcache_reset')) {
-            if (!opcache_reset()) {
+            if (opcache_reset() === false) {
                 abort(500, '缓存清除失败,请卸载或检查opcache配置状态');
             }
         }