|
|
@@ -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) {
|