diff options
author | Andrew Dolgov <[email protected]> | 2010-11-10 16:33:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-10 16:33:15 +0300 |
commit | 23d064cc81c2ece13781662ccf6dd99106587f67 (patch) | |
tree | 39a1e17decefe2da929b1314e12c29184cc22e27 /viewfeed.js | |
parent | b39b57ac44280cb759c55e4062892340c82ff67f (diff) |
localStorage: fix cache_expire()
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/viewfeed.js b/viewfeed.js index 4b8ac990d..5f5108780 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1834,9 +1834,12 @@ function cache_expire() { for (var id in cache_added) { var tmp = []; - if (timestamp - cache_added[id] > 60) { - console.warn("CEXP:" + id); - cache_invalidate(id); + var key_id = id.replace("TS:", ""); + + //console.warn("CEXP:" + key_id); + + if (timestamp - cache_added[id] > 180) { + cache_invalidate(key_id); } else { tmp[id] = cache_added[id]; } |