diff options
author | Andrew Dolgov <[email protected]> | 2008-05-18 09:52:42 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-18 09:52:42 +0100 |
commit | b2bb787c77330853d900c69cd163d26785804120 (patch) | |
tree | 960b0059efeb952f661f525cce33d5bf6a7ca034 /viewfeed.js | |
parent | aa0fa9df1ee81b1af80dd1c882ea171563f6b1e9 (diff) |
cache/preload tweaks
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viewfeed.js b/viewfeed.js index b2a79b039..c896036c7 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1555,7 +1555,7 @@ function cache_check_param(id, param) { } function cache_expire() { - while (article_cache.length > 20) { + while (article_cache.length > 25) { article_cache.shift(); } } @@ -1611,7 +1611,7 @@ function preload_article_callback(transport) { for (var i = 0; i < articles.length; i++) { var id = articles[i].getAttribute("id"); - if (!cache_find(id)) { + if (!cache_check(id)) { cache_inject(id, articles[i].firstChild.nodeValue); debug("preloaded article: " + id); } @@ -1624,7 +1624,7 @@ function preload_article_callback(transport) { function preloadArticleUnderPointer(id) { try { - if (post_under_pointer == id && !cache_find(id)) { + if (post_under_pointer == id && !cache_check(id)) { debug("trying to preload article " + id); |