mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 11:55:57 +00:00
parse_counters: cache feedlist after update (2)
This commit is contained in:
@@ -579,10 +579,11 @@ function parse_counters(reply, scheduled_call) {
|
|||||||
setTimeout('updateFeedList(false, false)', 50);
|
setTimeout('updateFeedList(false, false)', 50);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cache_invalidate("FEEDLIST");
|
var fl = document.getElementById("feeds-frame").innerHTML;
|
||||||
cache_inject("FEEDLIST",
|
if (fl) {
|
||||||
document.getElementById("feedList").innerHTML,
|
cache_invalidate("FEEDLIST");
|
||||||
getInitParam("num_feeds"));
|
cache_inject("FEEDLIST", fl, getInitParam("num_feeds"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -514,7 +514,11 @@ function init_second_stage() {
|
|||||||
|
|
||||||
if (fl) {
|
if (fl) {
|
||||||
render_feedlist(fl);
|
render_feedlist(fl);
|
||||||
request_counters();
|
if (document.getElementById("feedList")) {
|
||||||
|
request_counters();
|
||||||
|
} else {
|
||||||
|
setTimeout('updateFeedList(false, false)', 50);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout('updateFeedList(false, false)', 50);
|
setTimeout('updateFeedList(false, false)', 50);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user