添加检测缓存管理功能

This commit is contained in:
zhaojun1998
2020-01-03 15:48:42 +08:00
parent 4aa9839c6b
commit bd22cfd34c

View File

@@ -140,6 +140,11 @@ public class SystemConfigService {
log.debug("检测到开启了缓存, 开启预热缓存");
fileAsyncCacheService.cacheGlobalFile();
}
if (oldEnableCache && !curEnableCache) {
log.debug("检测到关闭了缓存, 正在清理缓存数据");
getCurrentFileService().clearCache();
}
}
public void updateUsernameAndPwd(String username, String password) {