aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/server/configuration/WwwAppConfiguration.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java b/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java
index da2e305d9..66f1d8ce3 100644
--- a/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java
+++ b/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java
@@ -61,6 +61,10 @@ public class WwwAppConfiguration implements WebMvcConfigurer {
private TagService tagService;
@Value("${img_path:#{systemEnvironment['TEMP'] ?: '/tmp'}}")
private String imgDir;
+ @Bean
+ public CacheManager cacheManager() {
+ return new CaffeineCacheManager("help", "users_by_name", "discussions", "messages", "replies", "popular_tags");
+ }
@Bean
public HelpService helpService() {