浏览代码

opcache: fix opcache issue

Tokumeikoi 4 年之前
父节点
当前提交
43193386bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Admin/ConfigController.php

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

@@ -138,10 +138,10 @@ class ConfigController extends Controller
         if (!\File::put(base_path() . '/config/v2board.php', "<?php\n return $data ;")) {
             abort(500, '修改失败');
         }
-        \Artisan::call('config:cache');
         if (function_exists('opcache')) {
             opcache_reset();
         }
+        \Artisan::call('config:cache');
         return response([
             'data' => true
         ]);