From a12eb9c3274d0c35b6c951bf992e8b992420fd92 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 29 Dec 2009 00:09:04 +0300 Subject: [PATCH] archiveSelection: invalidate article cache --- viewfeed.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/viewfeed.js b/viewfeed.js index ef3ab2c6c..22371cf9d 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1366,7 +1366,7 @@ function deleteSelection() { } }); } catch (e) { - exception_error("archiveSelection", e); + exception_error("deleteSelection", e); } } @@ -1411,6 +1411,10 @@ function archiveSelection() { debug(query); + for (var i = 0; i < rows.length; i++) { + cache_invalidate(rows[i]); + } + new Ajax.Request(query, { onComplete: function(transport) { viewCurrentFeed();