Tokumeikoi 5 years ago
parent
commit
ee80e0f2ff
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Http/Controllers/Admin/ConfigController.php

+ 3 - 0
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
         ]);