Skip to content

Commit eb86b22

Browse files
authored
Merge pull request #20 from GNU-connect/fix-diet
fix: 식단 캐싱 비활성화
2 parents 60fabbf + 2d84219 commit eb86b22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/example/Jinus/service/v2/cafeteria/CafeteriaServiceV2.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public List<ButtonDto> mappingButtonDto() {
8585
}
8686

8787

88-
@Cacheable(value = "cafeteriaId", key = "#cafeteriaName",
89-
unless = "#result == -1",
90-
cacheManager = "contentCacheManager")
88+
// @Cacheable(value = "cafeteriaId", key = "#cafeteriaName", // key 값을 'campusId + cafeteriaName' 조합으로 수정할 필요가 있음.
89+
// unless = "#result == -1",
90+
// cacheManager = "contentCacheManager")
9191
// 캠퍼스에 식당이 존재한다면 cafeteriaId 찾기
9292
public int getCafeteriaId(String cafeteriaName, int campusId) {
9393
return cafeteriaRepositoryV2.findCafeteriaId(cafeteriaName, campusId).orElse(-1);

0 commit comments

Comments
 (0)