Skip to content

fix: 공개 코스 쓰기 작업 시 관련 캐시 즉시 무효화 (dev) - #233

Merged
unam98 merged 1 commit into
devfrom
feat/cache-eviction-to-dev
Aug 11, 2026
Merged

fix: 공개 코스 쓰기 작업 시 관련 캐시 즉시 무효화 (dev)#233
unam98 merged 1 commit into
devfrom
feat/cache-eviction-to-dev

Conversation

@unam98

@unam98 unam98 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

작업 배경

dev/main 브랜치 정합성을 점검하다가, main엔 이미 반영된 캐시 무효화 로직(#208)이 dev엔 빠져있는 걸 발견했다.

변경 사항

영역 내용
CourseService.deleteCourses 캐시 무효화 추가 (조건부로 공개 코스도 같이 삭제될 수 있어 매번 무효화)
PublicCourseService.createPublicCourse / deletePublicCourses / updatePublicCourse 각각 영향받는 목록 캐시 무효화 추가

영향 범위

  • dev는 조회 캐싱(@Cacheable, TTL 1분)만 있고 무효화(@CacheEvict)가 없어서, 코스를 추가/삭제하거나 공개 코스를 수정해도 최대 1분간 오래된 목록이 그대로 보이던 문제가 있었음.
  • main의 검증된 로직을 그대로 포팅 — 로직 변경 없이 동일하게 반영.

Test Plan

  • ./gradlew compileJava 성공, dev 브랜치의 두 파일이 main과 완전히 동일함을 git diff origin/main으로 확인
  • 로컬 postgres/redis 기동 후 ./gradlew test 전체 251/251 통과

🤖 Generated with Claude Code

dev/main 정합성 점검 중 발견 — main엔 이미 반영된 캐시 무효화 로직
(#208)이 dev엔 빠져있어서, dev 환경에서 코스 추가/삭제/공개코스
수정을 해도 조회 캐시(전체페이지수/마라톤/추천, TTL 1분)가 최대
1분간 오래된 목록을 계속 보여주는 문제가 있었다. main과 동일하게
@CacheEvict를 코스 삭제/공개코스 생성·삭제·수정 지점에 추가했다.
@unam98 unam98 self-assigned this Aug 11, 2026
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@unam98, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8cca4ae1-2609-4561-80a8-f84688ccf65f

📥 Commits

Reviewing files that changed from the base of the PR and between b070376 and aaca0a6.

📒 Files selected for processing (2)
  • src/main/java/org/runnect/server/course/service/CourseService.java
  • src/main/java/org/runnect/server/publicCourse/service/PublicCourseService.java

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@unam98
unam98 merged commit 3b524fd into dev Aug 11, 2026
2 checks passed
@unam98
unam98 deleted the feat/cache-eviction-to-dev branch August 11, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants