From 431e27851bc35845c4bc207db98dae6067ca0516 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 1 May 2013 18:10:27 +0400 Subject: [PATCH] actually save feed xml in the cache --- include/rssfuncs.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 9148cc0e..eb10a5c6 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); } } -- 2.39.5