Browse Source

Merge remote-tracking branch 'origin/develop' into develop

develop
zhaoxianglong 8 months ago
parent
commit
d37c4d0b8b
  1. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSectionDataServiceImpl.java

2
zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSectionDataServiceImpl.java

@ -119,7 +119,7 @@ public class DcTrafficSectionDataServiceImpl
/**
* 定义每小时第20分钟执行的任务用于清除过期缓存数据并将缓存中的数据整合后保存至数据库
*/
@Scheduled(cron = "0 20 * * * ?") // 每小时的20分整点执行该任务
// @Scheduled(cron = "0 20 * * * ?") // 每小时的20分整点执行该任务
public void performHourlyCleanupAndPersist() {
// 清除已过期的缓存数据
DailyTrafficStatisticsCache.clearExpiredData();

Loading…
Cancel
Save