summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-21 10:15:14 +0100
committerAndrew Dolgov <[email protected]>2007-11-21 10:15:14 +0100
commitdd5865d46679da2f164f3d94305ca44ba05b4f16 (patch)
tree35763e5917cc2f4b0f527e439f9a3258e8152925 /viewfeed.js
parent77590c49829c570f49813b237ff38ba67ea8bea7 (diff)
headline cache fixes
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 1688680fc..9c41992bd 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -105,7 +105,15 @@ function headlines_callback2(transport, active_feed_id, is_cat, feed_cur_page) {
if (headlines) {
f.innerHTML = headlines.firstChild.nodeValue;
- cache_inject("F:" + active_feed_id,
+ var cache_prefix = "";
+
+ if (is_cat) {
+ cache_prefix = "C:";
+ } else {
+ cache_prefix = "F:";
+ }
+
+ cache_inject(cache_prefix + active_feed_id,
headlines.firstChild.nodeValue, headlines_unread);
} else {