]> git.wh0rd.org Git - tt-rss.git/commitdiff
localStorage: fix cache_expire()
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Nov 2010 13:33:15 +0000 (16:33 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Nov 2010 13:33:15 +0000 (16:33 +0300)
viewfeed.js

index 4b8ac990da5d2f815352bb197fff2eecfa51a2a4..5f5108780f5eebe8863ddeaa5c4769708b90325d 100644 (file)
@@ -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];
                                }