浏览代码

国际化配置文件,缓存事件调整为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 {