summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-02 15:14:34 +0300
committerAndrew Dolgov <[email protected]>2009-02-02 15:14:34 +0300
commit31234407bffa5debe79250e93a4168ea2251e094 (patch)
treecec9e513cc54632d7d609a92f61996641c0afff3 /tt-rss.js
parentfb456d28f227f4bd903c7ec736425ba64a5700f3 (diff)
enable cache of feedlist data
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index d49eaa6be..c3c21cc20 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -510,7 +510,14 @@ function init_second_stage() {
daemon_refresh_only = getInitParam("daemon_refresh_only") == 1;
feeds_sort_by_unread = getInitParam("feeds_sort_by_unread") == 1;
- setTimeout('updateFeedList(false, false)', 50);
+ var fl = cache_find("FEEDLIST");
+
+ if (fl) {
+ render_feedlist(fl);
+ request_counters();
+ } else {
+ setTimeout('updateFeedList(false, false)', 50);
+ }
debug("second stage ok");
@@ -1472,6 +1479,8 @@ function init_gears() {
db.execute("CREATE TABLE IF NOT EXISTS cache (id text, article text, param text, added text)");
}
+
+ cache_expire();
} catch (e) {
exception_error("init_gears", e);