Commit 1bc324ab authored by 刘基明's avatar 刘基明

转发后删除原贴fix

parent 073385d6
...@@ -18,7 +18,7 @@ public class RedisKeyConstant { ...@@ -18,7 +18,7 @@ public class RedisKeyConstant {
// 主题本身 // 主题本身
public static final String CACHE_THEME_ID = "CACHE_THEME_ID_"; public static final String CACHE_THEME_ID = "CACHE_THEME_ID_";
// 转发主题本身 // 转发主题本身
public static final String CACHE_FORMER_THEME_ID = "CACHE_FORMER_THEME_ID_"; public static final String CACHE_FORWARD_THEME_ID = "CACHE_FORWARD_THEME_ID_";
// 关注的人,上次浏览的最新主题last id // 关注的人,上次浏览的最新主题last id
public static final String CACHE_IDOL_THEME_LAST_ID = "CACHE_IDOL_THEME_LAST_ID_"; public static final String CACHE_IDOL_THEME_LAST_ID = "CACHE_IDOL_THEME_LAST_ID_";
......
...@@ -347,7 +347,7 @@ public class ThemeManager { ...@@ -347,7 +347,7 @@ public class ThemeManager {
private void buildThemeQoExtraInfo(ThemeQo themeQo) { private void buildThemeQoExtraInfo(ThemeQo themeQo) {
String themeId = themeQo.getThemeId(); String themeId = themeQo.getThemeId();
// 封装转发对象 // 封装转发对象
FormerThemeQo former = redisCache.getObject(StringUtils.joinWith("_", CACHE_FORMER_THEME_ID, themeId), 60, FormerThemeQo former = redisCache.getObject(StringUtils.joinWith("_", CACHE_FORWARD_THEME_ID, themeQo.getFormerThemeId()), 60,
() -> this.getFormerTheme(themeQo.getFormerThemeId()), FormerThemeQo.class); () -> this.getFormerTheme(themeQo.getFormerThemeId()), FormerThemeQo.class);
themeQo.setFormerTheme(former); themeQo.setFormerTheme(former);
...@@ -690,7 +690,7 @@ public class ThemeManager { ...@@ -690,7 +690,7 @@ public class ThemeManager {
} }
private void evictThemeCache(String themeId){ private void evictThemeCache(String themeId){
redisCache.evict(StringUtils.joinWith("_", CACHE_FORMER_THEME_ID, themeId)); redisCache.evict(StringUtils.joinWith("_", CACHE_FORWARD_THEME_ID, themeId));
redisCache.evict(StringUtils.joinWith("_", CACHE_THEME_ID, themeId)); redisCache.evict(StringUtils.joinWith("_", CACHE_THEME_ID, 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