diff options
author | Vitaly Takmazov | 2022-04-07 11:13:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-08 08:09:37 +0300 |
commit | 912171165155ff78ad111c9c4043844c34567a42 (patch) | |
tree | 876278eb4338d73d294ef55f10471d08f2b3e38b /src/main/resources/application.properties | |
parent | a6dff3324a55540877deaed23083ea502706a5ae (diff) |
Configure caches
* caching is disabled because of OOMs in production
Diffstat (limited to 'src/main/resources/application.properties')
-rw-r--r-- | src/main/resources/application.properties | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index df575a3c..a1fc50a3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,5 +6,7 @@ spring.jackson.serialization.write-empty-json-arrays=true spring.h2.console.enabled=true spring.datasource.generate-unique-name=false spring.sql.init.platform=h2 +spring.cache.type=none +spring.cache.cache-names=help, users_by_name, discussions, messages, replies, popular_tags +spring.cache.caffeine.spec=maximumSize=500,expireAfterAccess=600s spring.profiles.active=@activatedProperties@ - |