]> git.wh0rd.org Git - tt-rss.git/commitdiff
parse_counters: cache feedlist after update
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 2 Feb 2009 13:29:41 +0000 (16:29 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 2 Feb 2009 13:29:41 +0000 (16:29 +0300)
functions.js

index 2c09be16cc20e0d093778caef56b3baa8d92482b..6cff3eacdf1685a262c34e426d760c45a6975da9 100644 (file)
@@ -578,6 +578,11 @@ function parse_counters(reply, scheduled_call) {
                                debug("Subscribed feed number changed, refreshing feedlist");
                                setTimeout('updateFeedList(false, false)', 50);
                        }
+               } else {
+                       cache_invalidate("FEEDLIST");
+                       cache_inject("FEEDLIST", 
+                               document.getElementById("feedList").innerHTML, 
+                               getInitParam("num_feeds"));
                }
 
        } catch (e) {