Skip to content

Commit

Permalink
Merge pull request #96 from LetsCareer-A/fix/#95
Browse files Browse the repository at this point in the history
[fix] 캐싱 커리어 보드 조회 오류 수정
  • Loading branch information
oosedus authored Sep 11, 2024
2 parents f6d5f33 + c83294e commit 9aa4df9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> category) {
User user = getUser(userId);
Pageable pageable = PageRequest.of(page - 1, size);
Expand Down

0 comments on commit 9aa4df9

Please sign in to comment.