From 46336637a11fccd2d782ed7d4ee97d12eabfd6e5 Mon Sep 17 00:00:00 2001 From: Kristof Jozsa Date: Mon, 15 Jul 2024 10:41:45 +0200 Subject: [PATCH] FINERACT-2081: fix caching keys at codes cache eviction --- .../service/CodeWritePlatformServiceJpaRepositoryImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/codes/service/CodeWritePlatformServiceJpaRepositoryImpl.java b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/codes/service/CodeWritePlatformServiceJpaRepositoryImpl.java index c83c17816ab..740c5902795 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/codes/service/CodeWritePlatformServiceJpaRepositoryImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/codes/service/CodeWritePlatformServiceJpaRepositoryImpl.java @@ -60,7 +60,7 @@ public CodeWritePlatformServiceJpaRepositoryImpl(final PlatformSecurityContext c @Transactional @Override - @CacheEvict(value = "codes", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('cv')") + @CacheEvict(value = "codes", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('CD')") public CommandProcessingResult createCode(final JsonCommand command) { try { @@ -84,7 +84,7 @@ public CommandProcessingResult createCode(final JsonCommand command) { @Transactional @Override - @CacheEvict(value = "codes", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('cv')") + @CacheEvict(value = "codes", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('CD')") public CommandProcessingResult updateCode(final Long codeId, final JsonCommand command) { try { @@ -116,7 +116,7 @@ public CommandProcessingResult updateCode(final Long codeId, final JsonCommand c @Transactional @Override - @CacheEvict(value = "codes", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('cv')") + @CacheEvict(value = "codes", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('CD')") public CommandProcessingResult deleteCode(final Long codeId) { this.context.authenticatedUser();