Browse Source

Change Redis TTL to 10 mins

wfansh 4 months ago
parent
commit
64267d13e3

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/service/impl/GACountryReportServiceImpl.java

@@ -32,7 +32,7 @@ public class GACountryReportServiceImpl extends ServiceImpl<GACountryReportMappe
     @Cacheable(
             cacheManager = CacheConfig.TTL_CACHE_MANAGER,
             cacheNames =
-                    "getCountryStats" + TTLCacheManager.TTL_SPLITTER + 60 * 30) // Redis TTL为半小时
+                    "getCountryStats" + TTLCacheManager.TTL_SPLITTER + 60 * 10) // Redis TTL为10分钟
     public List<CountryStatsVO> getCountryStats(String siteCode, Date start, Date end) {
         List<CountryStatsVO> countryStatsVOs =
                 gaCountryReportMapper.getCountryStats(siteCode, start, end);

+ 2 - 2
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/service/impl/GADailyReportServiceImpl.java

@@ -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 =

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/service/impl/GAPagePathReportServiceImpl.java

@@ -41,7 +41,7 @@ public class GAPagePathReportServiceImpl
     @Cacheable(
             cacheManager = CacheConfig.TTL_CACHE_MANAGER,
             cacheNames =
-                    "getPagePathStats" + TTLCacheManager.TTL_SPLITTER + 60 * 30) // Redis TTL为半小时
+                    "getPagePathStats" + TTLCacheManager.TTL_SPLITTER + 60 * 10) // Redis TTL为10分钟
     public List<PagePathStatsVO> getPagePathStats(
             String siteCode, Date start, Date end, int limit) {
         List<PagePathStatsVO> pagePathStatsVOs =

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/service/impl/GASourceMediumReportServiceImpl.java

@@ -33,7 +33,7 @@ public class GASourceMediumReportServiceImpl
             cacheNames =
                     "getSourceMediumStats"
                             + TTLCacheManager.TTL_SPLITTER
-                            + 60 * 30) // Redis TTL为半小时
+                            + 60 * 10) // Redis TTL为10分钟
     public List<SourceMediumStatsVO> getSourceMediumStats(String siteCode, Date start, Date end) {
         List<SourceMediumStatsVO> sourceMediumStatsVOs =
                 gaSourceMediumReportMapper.getSourceMediumStats(siteCode, start, end);