diff --git a/backend/src/main/java/heartbeat/config/CacheConfig.java b/backend/src/main/java/heartbeat/config/CacheConfig.java index 44ae46e898..5f0f03c7c4 100644 --- a/backend/src/main/java/heartbeat/config/CacheConfig.java +++ b/backend/src/main/java/heartbeat/config/CacheConfig.java @@ -59,7 +59,13 @@ public CacheManager ehCacheManager() { @SuppressWarnings("unchecked") private javax.cache.configuration.Configuration getCacheConfiguration(Class valueType) { - ResourcePoolsBuilder offHeap = ResourcePoolsBuilder.newResourcePoolsBuilder().offheap(2, MemoryUnit.MB); + ResourcePoolsBuilder offHeap; + if (valueType == String.class) { + offHeap = ResourcePoolsBuilder.newResourcePoolsBuilder().offheap(4, MemoryUnit.MB); + } + else { + offHeap = ResourcePoolsBuilder.newResourcePoolsBuilder().offheap(2, MemoryUnit.MB); + } Duration timeToLive; if (valueType == HolidaysResponseDTO.class) { timeToLive = Duration.ofSeconds(300); diff --git a/backend/src/main/resources/log4j2.xml b/backend/src/main/resources/log4j2.xml index e6c4e36682..b980f477aa 100644 --- a/backend/src/main/resources/log4j2.xml +++ b/backend/src/main/resources/log4j2.xml @@ -2,7 +2,7 @@ - %d{yyyy-MM-dd HH:mm:ss.SSS} [%highlight{%-5level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=green}] [%t] %M(%c{1}:%L): %m%n%ex + %d{yyyy-MM-dd HH:mm:ss.SSS} [%highlight{%-5level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=green}] [%t] %M(%c{1}:%L): %replace{%msg}{(((ghp_)|(bkua_))[a-zA-Z0-9]+)|((Basic )([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==))}{xxxxx}%n%ex