diff options
author | Vitaly Takmazov | 2019-08-09 11:47:04 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-08-09 11:47:04 +0300 |
commit | ba27618f479974e8cef76c19e498d8d33106c043 (patch) | |
tree | d55b24aca8f0889808123492576d4223c4a85fbc | |
parent | 3c24639c1086c94ac5ed800d0114e527b8995530 (diff) |
Revert "Cache popular tags"
This reverts commit d18c76dd2ec83a757ccb4073a49cc1512c9c5bcb.
-rw-r--r-- | src/main/java/com/juick/server/configuration/WwwAppConfiguration.java | 2 | ||||
-rw-r--r-- | src/main/java/com/juick/service/TagService.java | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java b/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java index 66f1d8ce..45950eb0 100644 --- a/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java +++ b/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java @@ -63,7 +63,7 @@ public class WwwAppConfiguration implements WebMvcConfigurer { private String imgDir; @Bean public CacheManager cacheManager() { - return new CaffeineCacheManager("help", "users_by_name", "discussions", "messages", "replies", "popular_tags"); + return new CaffeineCacheManager("help", "users_by_name", "discussions", "messages", "replies"); } @Bean diff --git a/src/main/java/com/juick/service/TagService.java b/src/main/java/com/juick/service/TagService.java index ca4b665e..489f405a 100644 --- a/src/main/java/com/juick/service/TagService.java +++ b/src/main/java/com/juick/service/TagService.java @@ -21,7 +21,6 @@ import com.juick.Tag; import com.juick.User; import com.juick.model.TagStats; import org.apache.commons.lang3.tuple.Pair; -import org.springframework.cache.annotation.Cacheable; import java.util.Collection; import java.util.List; @@ -45,7 +44,6 @@ public interface TagService { List<String> getUserBLTags(int uid); - @Cacheable(value = "popular_tags") List<String> getPopularTags(); List<TagStats> getTagStats(); |