From: Andrew Dolgov Date: Sun, 18 Jan 2009 10:25:06 +0000 (+0100) Subject: remove label headlines from cache when articles are being assigned to it X-Git-Tag: 1.3.0~83 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=898e85628b8774b81f241004e440a3d754b111af;p=tt-rss.git remove label headlines from cache when articles are being assigned to it --- diff --git a/viewfeed.js b/viewfeed.js index a1163893..5251eeb5 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -869,6 +869,8 @@ function selectionRemoveLabel(id) { // notify_progress("Loading, please wait..."); + cache_invalidate("F:" + (-11 - id)); + new Ajax.Request(query, { onComplete: function(transport) { viewCurrentFeed(); @@ -896,6 +898,8 @@ function selectionAssignLabel(id) { if (ok) { + cache_invalidate("F:" + (-11 - id)); + var query = "backend.php?op=rpc&subop=assignToLabel&ids=" + param_escape(ids.toString()) + "&lid=" + param_escape(id);