Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yujamint authored Jul 25, 2024
2 parents 7c34ed9 + a62b41e commit 1ccedfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand All @@ -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<CategorizedProblem> findCategorizedProblemsByCategoryId(Long categoryId, int page, int size) {
PageRequest pageRequest = PageRequest.of(page, size);
return categorizedProblemRepository.findByCategoryCategoryId(categoryId, pageRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -112,7 +111,7 @@ public CategorizedSummary findVerifiedCategorizedSummaryByCategorizedSummaryId(L
}

@Transactional(readOnly = true)
@Cacheable(value = "categorizedSummary", key = "#categoryId")
// @Cacheable(value = "categorizedSummary", key = "#categoryId")
public Page<CategorizedSummary> findCategorziedSummarysByCategoryId(Long categoryId, int page, int size) {
PageRequest pageRequest = PageRequest.of(page, size);
return categorizedSummaryRepository.findByCategoryCategoryId(categoryId, pageRequest);
Expand Down

0 comments on commit 1ccedfd

Please sign in to comment.