Commit bfc118e2 authored by 刘基明's avatar 刘基明

降低缓存刷新频率 test

parent 825b06c8
package com.tanpu.community.manager;
import com.tanpu.community.service.*;
import com.tanpu.community.util.TimeUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
@Slf4j
@Service
@Configuration
......@@ -42,6 +45,7 @@ public class ConJobManager {
*/
@Scheduled(cron = "10 0/2 * * * ?")
public void themeRank() {
log.info("圈子定时统计开始执行,"+ TimeUtils.format(LocalDateTime.now()));
rankService.rankThemes();
rankService.rankTopics();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment