From ee80e0f2ff9b317b3415a70ef28101e79873eda6 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Mon, 30 Mar 2020 16:11:08 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/ConfigController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index 607c4f6e..fab82255 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/app/Http/Controllers/Admin/ConfigController.php @@ -106,6 +106,9 @@ class ConfigController extends Controller abort(500, '修改失败'); } \Artisan::call('config:cache'); + if (function_exists('opcache')) { + opcache_reset(); + } return response([ 'data' => true ]);