|
@@ -55,7 +55,7 @@ public class GADailyReportServiceImpl extends ServiceImpl<GADailyReportMapper, G
|
|
|
cacheNames =
|
|
|
"getDailyStatsWithinPeriod"
|
|
|
+ TTLCacheManager.TTL_SPLITTER
|
|
|
- + 60 * 30) // Redis TTL为半小时
|
|
|
+ + 60 * 10) // Redis TTL为10分钟
|
|
|
public List<DailyStatsVO> getDailyStatsForDateRange(String siteCode, Date start, Date end) {
|
|
|
Map<String, DailyStatsVO> dailyStatsVOs = Maps.newHashMap();
|
|
|
|
|
@@ -135,7 +135,7 @@ public class GADailyReportServiceImpl extends ServiceImpl<GADailyReportMapper, G
|
|
|
@Cacheable(
|
|
|
cacheManager = CacheConfig.TTL_CACHE_MANAGER,
|
|
|
cacheNames =
|
|
|
- "getPeriodicStats" + TTLCacheManager.TTL_SPLITTER + 60 * 30) // Redis TTL为半小时
|
|
|
+ "getPeriodicStats" + TTLCacheManager.TTL_SPLITTER + 60 * 10) // Redis TTL为10分钟
|
|
|
public List<PeriodicStatsVO> getPeriodicStats(String siteCode) {
|
|
|
// 1. 查询GA统计数据 - UV,PV等
|
|
|
Map<String, PeriodicStatsVO> periodicStatsVOs =
|