mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
✨ 添加检测缓存管理功能
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user