Skip to content

Commit

Permalink
cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gtiwari333 committed Dec 25, 2023
1 parent d66f26b commit 5038c86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public interface ArticleRepository extends AbstractRepository<Article>, ArticleR
@Override
@Caching(
evict = {
@CacheEvict(cacheNames = {"articleForReview"}, key = "#result.id"),
@CacheEvict(cacheNames = {"articleForReview", "articleRead"}, key = "#result.id"),
@CacheEvict(cacheNames = {"previewForPublicHomePage", "previewAllWithFilesByUser", "getAllToReview"}, allEntries = true)
}
)
Expand All @@ -52,7 +52,7 @@ public interface ArticleRepository extends AbstractRepository<Article>, ArticleR
@Override
@Caching(
evict = {
@CacheEvict(cacheNames = {"articleForReview"}, key = "#id"),
@CacheEvict(cacheNames = {"articleForReview", "articleRead"}, key = "#id"),
@CacheEvict(cacheNames = {"previewForPublicHomePage", "previewAllWithFilesByUser", "getAllToReview"}, allEntries = true)
}
)
Expand Down

0 comments on commit 5038c86

Please sign in to comment.