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 ]);