]> git.wh0rd.org Git - tt-rss.git/commitdiff
actually save feed xml in the cache
authorAndrew Dolgov <fox@fakecake.org>
Wed, 1 May 2013 14:10:27 +0000 (18:10 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 1 May 2013 14:10:27 +0000 (18:10 +0400)
include/rssfuncs.php

index 9148cc0e08111858cb5974175b21ed4e4ad77d1a..eb10a5c6661659ea19a79a4dcb8936fb1e18e1af 100644 (file)
 
                        // 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);
                                }
                        }