Преглед изворни кода

国际化配置文件,缓存事件调整为60s

xuxueli пре 8 година
родитељ
комит
8f80395ac1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java

+ 1 - 1
xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java Прегледај датотеку

27
     private static long lastCacheTim = 0L;
27
     private static long lastCacheTim = 0L;
28
 
28
 
29
     public static Properties loadI18nProp(){
29
     public static Properties loadI18nProp(){
30
-        if (prop != null && (System.currentTimeMillis()-lastCacheTim)<3*1000) {
30
+        if (prop != null && (System.currentTimeMillis()-lastCacheTim)<60*1000) {
31
             return prop;
31
             return prop;
32
         }
32
         }
33
         try {
33
         try {