From 5e6c32e04c05a8925fad5bd9c1e8167a9002a10c Mon Sep 17 00:00:00 2001 From: Karson Date: Fri, 9 Jun 2023 14:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/admin/controller/Ajax.php b/application/admin/controller/Ajax.php index 3513eb16..f138d8e4 100644 --- a/application/admin/controller/Ajax.php +++ b/application/admin/controller/Ajax.php @@ -20,7 +20,6 @@ use think\Validate; */ class Ajax extends Backend { - protected $noNeedLogin = ['lang']; protected $noNeedRight = ['*']; protected $layout = ''; @@ -195,7 +194,6 @@ class Ajax extends Backend $type = $this->request->request("type"); switch ($type) { case 'all': - // no break case 'content': //内容缓存 rmdirs(CACHE_PATH, false); @@ -203,18 +201,21 @@ class Ajax extends Backend if ($type == 'content') { break; } + // no break case 'template': // 模板缓存 rmdirs(TEMP_PATH, false); if ($type == 'template') { break; } + // no break case 'addons': // 插件缓存 Service::refresh(); if ($type == 'addons') { break; } + // no break case 'browser': // 浏览器缓存 // 只有生产环境下才修改 @@ -311,5 +312,4 @@ class Ajax extends Backend $response = Response::create($data, '', 200, $header); return $response; } - }