Skip to content

Commit

Permalink
Fix cache evict
Browse files Browse the repository at this point in the history
  • Loading branch information
ErkoRisthein committed Dec 12, 2024
1 parent 0ca64ba commit 2aba546
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/ee/tuleva/onboarding/epis/EpisService.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ public CashFlowStatement getCashFlowStatement(
@CacheEvict(value = APPLICATIONS_CACHE_NAME, key = "#person.personalCode"),
@CacheEvict(value = CONTACT_DETAILS_CACHE_NAME, key = "#person.personalCode"),
@CacheEvict(value = ACCOUNT_STATEMENT_CACHE_NAME, key = "#person.personalCode"),
@CacheEvict(value = CONTRIBUTIONS_CACHE_NAME, key = "#person.personalCode"),
@CacheEvict(value = FUND_PENSION_CALCULATION_CACHE_NAME, key = "#person.personalCode"),
@CacheEvict(value = ARRESTS_BANKRUPTCIES_CACHE_NAME, key = "#person.personalCode"),
})
public void clearCache(Person person) {
log.info("Clearing cache for {}", person.getPersonalCode());
Expand Down

0 comments on commit 2aba546

Please sign in to comment.