浏览代码

[bugfix] dissociate grid list cache and grid expiracy

B Thibault 8 年之前
父节点
当前提交
c7645ac6d0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/GridManager.js

+ 3 - 2
src/GridManager.js

@@ -6,7 +6,8 @@ const
     };
 
 const DEBUG_QUERY = false
-    ,CACHE_EXPIRACY = 86400000; // 1 day
+    ,CACHE_EXPIRACY = 300000 // 5 minutes
+    ,GRID_EXPIRACY = 86400000; // 1 day
 
 const GRID_CACHE = {
         data: {},
@@ -16,7 +17,7 @@ const GRID_CACHE = {
 
 setInterval(function() {
     const now = Date.now()
-        ,nowExpire = now -CACHE_EXPIRACY;
+        ,nowExpire = now -GRID_EXPIRACY;
 
     for (let i in GRID_DATA) {
         if (GRID_DATA[i].minVersion < nowExpire) {