From 732edcad570badbff8d5dedfecd0e22dda19e6f0 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Wed, 18 Nov 2020 11:12:38 +0800 Subject: [PATCH] update: fix opcache return null --- app/Http/Controllers/Admin/ConfigController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index 7425fd03..0e75c2a2 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/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配置状态'); } }