fix: 공개 코스 쓰기 작업 시 관련 캐시 즉시 무효화 (dev) - #233
Conversation
dev/main 정합성 점검 중 발견 — main엔 이미 반영된 캐시 무효화 로직 (#208)이 dev엔 빠져있어서, dev 환경에서 코스 추가/삭제/공개코스 수정을 해도 조회 캐시(전체페이지수/마라톤/추천, TTL 1분)가 최대 1분간 오래된 목록을 계속 보여주는 문제가 있었다. main과 동일하게 @CacheEvict를 코스 삭제/공개코스 생성·삭제·수정 지점에 추가했다.
|
Warning Review limit reached
Next review available in: 54 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
작업 배경
dev/main 브랜치 정합성을 점검하다가, main엔 이미 반영된 캐시 무효화 로직(#208)이 dev엔 빠져있는 걸 발견했다.
변경 사항
CourseService.deleteCoursesPublicCourseService.createPublicCourse/deletePublicCourses/updatePublicCourse영향 범위
@Cacheable, TTL 1분)만 있고 무효화(@CacheEvict)가 없어서, 코스를 추가/삭제하거나 공개 코스를 수정해도 최대 1분간 오래된 목록이 그대로 보이던 문제가 있었음.Test Plan
./gradlew compileJava성공, dev 브랜치의 두 파일이 main과 완전히 동일함을git diff origin/main으로 확인./gradlew test전체 251/251 통과🤖 Generated with Claude Code