缓存功能优化, 修改设置后自动修改缓存, 且缓存未完成, 搜索功能暂时禁用.

This commit is contained in:
zhaojun1998
2020-01-02 18:17:11 +08:00
parent 2a367afc37
commit de947e510c
6 changed files with 35 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ public class AdminController {
* 更新系统配置
*/
@PostMapping("/config")
public ResultBean updateConfig(SystemConfigDTO systemConfigDTO) {
public ResultBean updateConfig(SystemConfigDTO systemConfigDTO) throws Exception {
StorageTypeEnum currentStorageStrategy = systemConfigService.getCurrentStorageStrategy();
systemConfigDTO.setId(1);
@@ -82,7 +82,7 @@ public class AdminController {
/**
* 清理当前启用的存储引擎的缓存
*/
@GetMapping("/clear-cache")
@PostMapping("/clear-cache")
public ResultBean clearCache() {
AbstractFileService fileService = systemConfigService.getCurrentFileService();
fileService.clearCache();