only update cache when viewing unread articles when view_mode is all_articles

This commit is contained in:
Andrew Dolgov 2007-11-22 08:45:46 +01:00
parent 4c009c783c
commit 11063ec65c
1 changed files with 11 additions and 2 deletions

View File

@ -259,7 +259,16 @@ function showArticleInHeadlines(id) {
} else {
cache_prefix = "F:";
}
var view_mode = false;
try {
view_mode = document.forms['main_toolbar_form'].view_mode;
view_mode = view_mode[view_mode.selectedIndex].value;
} catch (e) {
exception_error("showArticleInHeadlines/viewmode", e, true);
}
if (upd_img_pic && upd_img_pic.src.match("updated.png")) {
upd_img_pic.src = "images/blank_icon.gif";
@ -269,7 +278,7 @@ function showArticleInHeadlines(id) {
document.getElementById("headlines-frame").innerHTML,
get_feed_unread(getActiveFeedId()));
} else if (article_is_unread) {
} else if (article_is_unread && view_mode == "all_articles") {
cache_invalidate(cache_prefix + getActiveFeedId());