diff --git a/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java b/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java index c488021..139bef4 100644 --- a/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java +++ b/src/main/java/com/app/domain/categorizedproblem/service/CategorizedProblemService.java @@ -52,7 +52,6 @@ public class CategorizedProblemService { private final ProblemService problemService; - @CacheEvict(value = "categorizedProblem", key = "#categoryId") public CategorizedProblem createCategorizedProblem(Long categoryId, Long problemId) { checkForDuplicateCategorizedProblem(categoryId, problemId); @@ -176,7 +175,6 @@ public MemberSavedSummaryDto.pdfResponse createCategorizedProblemsPdf(Long categ return new MemberSavedSummaryDto.pdfResponse(pdfContent, title); } - @CacheEvict(value = "categorizedProblem", key = "#result.getCategory().getCategoryId()") public CategorizedProblem updateCategorizedProblem(Long categorizedProblemId, MemberSavedProblemDto.Patch problemPatchDto) { CategorizedProblem categorizedProblem = findVerifiedCategorizedProblemByCategorizedProblemId(categorizedProblemId); @@ -188,7 +186,7 @@ public CategorizedProblem updateCategorizedProblem(Long categorizedProblemId, Me } @Transactional(readOnly = true) - @Cacheable(value = "categorizedProblem", key = "#categoryId") +// @Cacheable(value = "categorizedProblem", key = "#categoryId") public Page findCategorizedProblemsByCategoryId(Long categoryId, int page, int size) { PageRequest pageRequest = PageRequest.of(page, size); return categorizedProblemRepository.findByCategoryCategoryId(categoryId, pageRequest); diff --git a/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java b/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java index c3678bc..c690917 100644 --- a/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java +++ b/src/main/java/com/app/domain/categorizedsummary/service/CategorizedSummaryService.java @@ -40,7 +40,6 @@ public class CategorizedSummaryService { private final SummaryRepository summaryRepository; - @CacheEvict(value = "categorizedSummary", key = "#categoryId") public CategorizedSummary createCategorizedSummary(Long categoryId, Long summaryId) { checkForDuplicateCategorizedProblem(categoryId, summaryId); @@ -112,7 +111,7 @@ public CategorizedSummary findVerifiedCategorizedSummaryByCategorizedSummaryId(L } @Transactional(readOnly = true) - @Cacheable(value = "categorizedSummary", key = "#categoryId") +// @Cacheable(value = "categorizedSummary", key = "#categoryId") public Page findCategorziedSummarysByCategoryId(Long categoryId, int page, int size) { PageRequest pageRequest = PageRequest.of(page, size); return categorizedSummaryRepository.findByCategoryCategoryId(categoryId, pageRequest);