diff options
author | Vitaly Takmazov | 2019-08-09 11:47:22 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-08-09 11:47:22 +0300 |
commit | 4d67541a40fffd9ec93e314d05ad4d53734473dd (patch) | |
tree | b75110090cb791c3ecfd4a6546913abd727d69a1 /src/main/java/com/juick/server/configuration | |
parent | eb3a8ffb7500ca399e3d54faf185d21f4dbd0b1b (diff) |
Revert "Caching configuration for users and discussions"
This reverts commit c8eeadee42695ed67dac47dbb9d7a66a1c9a8c6d.
Diffstat (limited to 'src/main/java/com/juick/server/configuration')
-rw-r--r-- | src/main/java/com/juick/server/configuration/WwwAppConfiguration.java | 5 |
1 files changed, 2 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 0c5c8dbf..635302c7 100644 --- a/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java +++ b/src/main/java/com/juick/server/configuration/WwwAppConfiguration.java @@ -32,7 +32,6 @@ import org.commonmark.node.Link; import org.commonmark.parser.Parser; import org.commonmark.renderer.html.HtmlRenderer; import org.springframework.beans.factory.annotation.Value; -import org.springframework.cache.CacheManager; import org.springframework.cache.annotation.EnableCaching; import org.springframework.cache.caffeine.CaffeineCacheManager; import org.springframework.context.annotation.Bean; @@ -62,8 +61,8 @@ public class WwwAppConfiguration implements WebMvcConfigurer { @Value("${img_path:#{systemEnvironment['TEMP'] ?: '/tmp'}}") private String imgDir; @Bean - public CacheManager cacheManager() { - return new CaffeineCacheManager("help", "users_by_name", "discussions"); + public CaffeineCacheManager cacheManager() { + return new CaffeineCacheManager("help"); } @Bean |