diff --git a/app/admin/controller/api/Plugs.php b/app/admin/controller/api/Plugs.php index 35e5b1a24..6d0fa360e 100644 --- a/app/admin/controller/api/Plugs.php +++ b/app/admin/controller/api/Plugs.php @@ -68,7 +68,9 @@ class Plugs extends Controller if (AdminService::instance()->getUserName() !== 'admin') { $this->error('只有超级管理员才能操作!'); } + $data = SystemService::instance()->getRuntime(); $this->app->console->call('clear'); + SystemService::instance()->setRuntime($data['app_map'], $data['app_run']); $this->success('清理网站缓存成功!'); } catch (HttpResponseException $exception) { throw $exception;