From 496f5a18364fc3eca3153f718279169bb0575207 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 21 Sep 2020 18:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=82=E6=95=B0=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/api/Plugs.php | 1 + app/admin/view/config/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/api/Plugs.php b/app/admin/controller/api/Plugs.php index e9824f2a3..9e5ad13c1 100644 --- a/app/admin/controller/api/Plugs.php +++ b/app/admin/controller/api/Plugs.php @@ -151,6 +151,7 @@ class Plugs extends Controller $this->app->db->name('SystemConfig')->whereRaw('1=1')->delete(); $this->app->db->name('SystemConfig')->insertAll($alldata); }); + $this->app->cache->delete('SystemConfig'); $this->success('清理系统配置成功!'); } catch (HttpResponseException $exception) { throw $exception; diff --git a/app/admin/view/config/index.html b/app/admin/view/config/index.html index 19828d061..f1faea327 100644 --- a/app/admin/view/config/index.html +++ b/app/admin/view/config/index.html @@ -3,7 +3,7 @@ {block name="button"} 优化数据库 -清理重复配置 +清理重复配置 修改系统参数