From 912171165155ff78ad111c9c4043844c34567a42 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 7 Apr 2022 11:13:58 +0300 Subject: Configure caches * caching is disabled because of OOMs in production --- src/main/resources/application.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/resources/application.properties') 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@ - -- cgit v1.2.3