Browse Source

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

xuxueli 8 years ago
parent
commit
f46db7e990

+ 1 - 1
xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java View File

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 {