]> git.wh0rd.org Git - tt-rss.git/commitdiff
invalidate headline cache when clicking on unread article
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 26 Nov 2007 17:32:37 +0000 (18:32 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 26 Nov 2007 17:32:37 +0000 (18:32 +0100)
viewfeed.js

index 1ad7e77fceb67c49c5dee0cd431f0bbd190dadf0..0609bb5ff23c4b78e51de4924466ecd217c23101 100644 (file)
@@ -286,6 +286,8 @@ function showArticleInHeadlines(id) {
                                document.getElementById("headlines-frame").innerHTML,
                                get_feed_unread(getActiveFeedId())-1);
 
+               } else if (article_is_unread) {
+                       cache_invalidate(cache_prefix + getActiveFeedId());
                }
 
                markHeadline(id);