mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 12:05:57 +00:00
actually save feed xml in the cache
This commit is contained in:
@@ -381,12 +381,11 @@
|
|||||||
|
|
||||||
// cache data for later
|
// cache data for later
|
||||||
if (!$auth_pass && !$auth_login && is_writable(CACHE_DIR . "/simplepie")) {
|
if (!$auth_pass && !$auth_login && is_writable(CACHE_DIR . "/simplepie")) {
|
||||||
$rss_data = serialize($rss);
|
|
||||||
$new_rss_hash = sha1($rss_data);
|
$new_rss_hash = sha1($rss_data);
|
||||||
|
|
||||||
if ($new_rss_hash != $rss_hash && count($rss->get_items()) > 0 ) {
|
if ($new_rss_hash != $rss_hash && count($rss->get_items()) > 0 ) {
|
||||||
_debug("saving $cache_filename", $debug_enabled);
|
_debug("saving $cache_filename", $debug_enabled);
|
||||||
@file_put_contents($cache_filename, $rss_data);
|
@file_put_contents($cache_filename, $feed_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user