diff options
author | Andrew Dolgov <[email protected]> | 2013-04-25 16:12:49 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-25 16:12:49 +0400 |
commit | 23283f11a33fc1e93f6adf1d6ee506a6bb579eb4 (patch) | |
tree | 51d72c7fc4959ddff7566bf4cc5e990bc2865ef6 /include/rssfuncs.php | |
parent | 204f9b186ff903bb5638320ba73614a6a89e2d6d (diff) |
fetch: better checking for 1970- date
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index f806d4807..dbe76d2d3 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -241,8 +241,7 @@ $cache_filename = CACHE_DIR . "/simplepie/" . sha1($fetch_url) . ".feed"; // Ignore cache if new feed or manual update. - $cache_age = ($no_cache || is_null($last_updated) || $last_updated == '1970-01-01 00:00:00') ? - 30 : get_feed_update_interval($feed) * 60; + $cache_age = ($no_cache || is_null($last_updated) || strpos($last_updated, '1970-01-01') === 0) ? 30 : get_feed_update_interval($feed) * 60; _debug("cache filename: $cache_filename exists: " . file_exists($cache_filename), $debug_enabled); _debug("cache age: $cache_age; no cache: $no_cache", $debug_enabled); |