diff --git a/src/main/java/com/example/letscareer/career/service/CareerService.java b/src/main/java/com/example/letscareer/career/service/CareerService.java index b123e17..bad956f 100644 --- a/src/main/java/com/example/letscareer/career/service/CareerService.java +++ b/src/main/java/com/example/letscareer/career/service/CareerService.java @@ -62,7 +62,8 @@ public GetCareerDetailResponse getCareerDetail(Long userId, Long careerId) { } @Transactional - @Cacheable(value = "CareersCache", key = "#userId", unless = "#result == null || #result.careers.size() == 0") + @Cacheable(value = "CareersCache", key = "#userId + '_' + #page + '_' + #size + '_' + #category", + unless = "#result == null || #result.careers.size() == 0") public GetCareersResponse getCareers(Long userId, int page, int size, List category) { User user = getUser(userId); Pageable pageable = PageRequest.of(page - 1, size);