From: Andrew Dolgov Date: Wed, 1 May 2013 14:10:27 +0000 (+0400) Subject: actually save feed xml in the cache X-Git-Tag: 1.7.9~25^2~43 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=431e27851bc35845c4bc207db98dae6067ca0516;p=tt-rss.git actually save feed xml in the cache --- 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); } }