From: Andrew Dolgov Date: Thu, 22 Nov 2007 05:15:21 +0000 (+0100) Subject: invalidate headline cache when updated article is clicked X-Git-Tag: 1.2.18~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ebda016b58ae8a29fa86ee7e4b8766c024f48303;p=tt-rss.git invalidate headline cache when updated article is clicked --- diff --git a/viewfeed.js b/viewfeed.js index aa3a1483..2b264b0a 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -250,8 +250,18 @@ function showArticleInHeadlines(id) { var upd_img_pic = document.getElementById("FUPDPIC-" + id); - if (upd_img_pic) { + if (upd_img_pic && upd_img_pic.src.match("updated.png")) { upd_img_pic.src = "images/blank_icon.gif"; + + var cache_prefix = ""; + + if (activeFeedIsCat()) { + cache_prefix = "C:"; + } else { + cache_prefix = "F:"; + } + + cache_invalidate(cache_prefix + getActiveFeedId()); } selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);