]> git.wh0rd.org - tt-rss.git/commitdiff
remove cache valid bailout clause
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 21:36:17 +0000 (01:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 21:36:17 +0000 (01:36 +0400)
include/rssfuncs.php

index 1bbac2843cd9818d3d2674c7c08ec888a5b145fb..662600332ba16141dcb0df6692cfc3f06bc03102 100644 (file)
                        !$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);
                }