🐛 修复无法刷新单个缓存的 BUG

This commit is contained in:
zhaojun1998
2020-03-07 13:08:42 +08:00
parent 8698686a47
commit bd71712765

View File

@@ -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();
}
*/
}