diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/server/configuration/WwwAppConfiguration.java | 4 | ||||
-rw-r--r-- | src/main/resources/application.properties | 2 |
2 files changed, 2 insertions, 4 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..da2e305d 100644 --- a/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java +++ b/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java @@ -61,10 +61,6 @@ 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() { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index af0bee6e..99138174 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,3 +2,5 @@ spring.jackson.default-property-inclusion=non_default spring.jackson.serialization.write-dates-as-timestamps=false spring.h2.console.enabled=true spring.datasource.platform=h2 +spring.cache.cache-names=help, users_by_name, discussions, messages, replies, popular_tags +spring.cache.caffeine.spec=maximumSize=500,expireAfterAccess=600s |