diff options
author | Andrew Dolgov <[email protected]> | 2013-05-02 01:36:17 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-02 01:36:17 +0400 |
commit | 52637d3b30ea10715fc20f63eeb39445a725dbb5 (patch) | |
tree | dea87409ac645111a29f01b74959d8c6d6bd9698 | |
parent | 865a3ed6a0651a7c507898e3493883b454f79eba (diff) |
remove cache valid bailout clause
-rw-r--r-- | include/rssfuncs.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 1bbac2843..662600332 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -264,18 +264,14 @@ !$auth_login && !$auth_pass && filemtime($cache_filename) > time() - $cache_age) { - _debug("using local cache.", $debug_enabled); + _debug("using local cache.", $debug_enabled); - if ($cache_timestamp > $last_article_timestamp) { - @$feed_data = file_get_contents($cache_filename); + @$feed_data = file_get_contents($cache_filename); + + if ($feed_data) { + $rss_hash = sha1($feed_data); + } - if ($feed_data) { - $rss_hash = sha1($feed_data); - } - } else if (!$force_refetch) { - _debug("local cache valid and older than last_updated, nothing to do.", $debug_enabled); - return; - } } else { _debug("local cache will not be used for this feed", $debug_enabled); } |