Commit 12861120 authored by 刘基明's avatar 刘基明

评论缓存fix

parent cd80f09d
...@@ -44,6 +44,7 @@ public class CommentService { ...@@ -44,6 +44,7 @@ public class CommentService {
//失效缓存 //失效缓存
evictThemeCache(commentEntity.getThemeId()); evictThemeCache(commentEntity.getThemeId());
} }
...@@ -150,7 +151,7 @@ public class CommentService { ...@@ -150,7 +151,7 @@ public class CommentService {
// 主题内容 // 主题内容
redisCache.evict(StringUtils.joinWith("_", CACHE_THEME_ID, themeId)); redisCache.evict(StringUtils.joinWith("_", CACHE_THEME_ID, themeId));
// 评论数 // 评论数
redisCache.evict(StringUtils.joinWith("_", THEME_LIKE_COUNT, themeId)); redisCache.evict(StringUtils.joinWith("_", THEME_COMMENT_COUNT, themeId));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment