[Fix] 빈 식단 응답 캐시로 인해 최신 데이터가 반영되지 않는 문제 수정 - #33
Merged
Conversation
- 특정 날짜 API가 빈 응답일 때 MenuCacheStatus를 갱신하지 않도록 변경 - 빈 응답 시 기존 DB 식단은 유지하고 해당 날짜 캐시 상태만 제거해 다음 진입에서 API를 재호출하도록 수정
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 관련 이슈
Closes BOB-87
✨ 작업 내용
MealRepository._saveMenuResponseToDb()로직 변경Meal을 지우고,MenuCacheStatus를 갱신해서 캐시 HIT 가능Meal데이터는 삭제하지 않음(기존 데이터 보존)MenuCacheStatus를 갱신하지 않음Meal삭제 후 새 데이터 저장효과:
🔎 변경 사항
✅ 체크리스트