Skip to content

Commit

Permalink
FINERACT-2081: fix caching keys at codes cache eviction
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Jul 15, 2024
1 parent a4f077d commit 4633663
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4633663

Please sign in to comment.