summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-01 18:10:27 +0400
committerAndrew Dolgov <[email protected]>2013-05-01 18:10:27 +0400
commit431e27851bc35845c4bc207db98dae6067ca0516 (patch)
treeaf8e5baddda546a1951f7639996b2ac83567da97 /include
parent99429e57e45c6bf2312243b57d64a56c8ccd7af2 (diff)
actually save feed xml in the cache
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 9148cc0e0..eb10a5c66 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -381,12 +381,11 @@
// cache data for later
if (!$auth_pass && !$auth_login && is_writable(CACHE_DIR . "/simplepie")) {
- $rss_data = serialize($rss);
$new_rss_hash = sha1($rss_data);
if ($new_rss_hash != $rss_hash && count($rss->get_items()) > 0 ) {
_debug("saving $cache_filename", $debug_enabled);
- @file_put_contents($cache_filename, $rss_data);
+ @file_put_contents($cache_filename, $feed_data);
}
}