Skip to content

Commit

Permalink
修复无法删除缓存的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 committed Aug 8, 2023
1 parent 2b3f72f commit 0a430bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public boolean clear(String cacheName) {
org.springframework.cache.Cache cache = cacheManager.getCache(cacheName);
if (cache != null) {
cache.clear();
} else if (CacheName.INDEXER_RESULT.equals(cacheName)) {
}
if (CacheName.INDEXER_RESULT.equals(cacheName)) {
indexerResultCache.asMap().clear();
} else {
syncIntervalCache.asMap().remove(cacheName);
Expand Down

0 comments on commit 0a430bc

Please sign in to comment.