mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-17 02:41:28 +01:00
update_rss_feed: bailout if cache is considered valid, but older than last_updated
This commit is contained in:
parent
31623bfa99
commit
17e74b21cf
@ -251,12 +251,19 @@
|
|||||||
_debug("update_rss_feed: using local cache.");
|
_debug("update_rss_feed: using local cache.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($cache_timestamp > $last_updated_timestamp) {
|
||||||
@$rss_data = file_get_contents($cache_filename);
|
@$rss_data = file_get_contents($cache_filename);
|
||||||
|
|
||||||
if ($rss_data) {
|
if ($rss_data) {
|
||||||
$rss_hash = sha1($rss_data);
|
$rss_hash = sha1($rss_data);
|
||||||
@$rss = unserialize($rss_data);
|
@$rss = unserialize($rss_data);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ($debug_enabled) {
|
||||||
|
_debug("update_rss_feed: local cache valid and older than last_updated, nothing to do.");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$rss) {
|
if (!$rss) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user