From bd717127650ed5e68d08f8b92d35113d705f3ef7 Mon Sep 17 00:00:00 2001 From: zhaojun1998 Date: Sat, 7 Mar 2020 13:08:42 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=8D=95=E4=B8=AA=E7=BC=93=E5=AD=98=E7=9A=84?= =?UTF-8?q?=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/im/zhaojun/common/controller/CacheController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/im/zhaojun/common/controller/CacheController.java b/src/main/java/im/zhaojun/common/controller/CacheController.java index ae4c510..8a34fa8 100644 --- a/src/main/java/im/zhaojun/common/controller/CacheController.java +++ b/src/main/java/im/zhaojun/common/controller/CacheController.java @@ -58,7 +58,7 @@ public class CacheController { return ResultBean.success(cacheConfigDTO); } - /* + @PostMapping("/refresh") public ResultBean refreshCache(String key) throws Exception { AbstractFileService fileService = systemConfigService.getCurrentFileService(); @@ -66,13 +66,14 @@ public class CacheController { return ResultBean.success(); } + /* @PostMapping("/clear") public ResultBean clearCache(String key) { AbstractFileService fileService = systemConfigService.getCurrentFileService(); fileService.clearFileCache(); return ResultBean.success(); } - */ + @PostMapping("/all") public ResultBean cacheAll() { @@ -81,4 +82,5 @@ public class CacheController { fileAsyncCacheService.cacheGlobalFile(); return ResultBean.success(); } + */ }