Skip to content

Commit 8636a8b

Browse files
authored
fix: 랭킹 업데이트 24시간마다 -> 10분마다 (#123)
1 parent 4ea201f commit 8636a8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/threestar/trainus/domain/ranking/service/RankingService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ private void saveToRedis(List<RankingResponseDto> rankings, String cacheKey) {
9696
}
9797
}
9898

99-
//매 자정마다 랭킹 업데이트
100-
@Scheduled(cron = "0 0 0 * * *")
99+
//매 10분마다 랭킹 업데이트
100+
@Scheduled(cron = "0 */10 * * * *")
101101
public void updateRankings() {
102102
log.info("랭킹 업데이트 시작");
103103

0 commit comments

Comments
 (0)