From 23d064cc81c2ece13781662ccf6dd99106587f67 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Nov 2010 16:33:15 +0300 Subject: [PATCH] localStorage: fix cache_expire() --- viewfeed.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/viewfeed.js b/viewfeed.js index 4b8ac990..5f510878 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]; } -- 2.39.5