From a799dd5738d486c6bf64ab9c0a14f172e8f3b33c Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 14 Feb 2019 10:59:47 +0100 Subject: Fix for very long ("forever") cache validity --- providers/Provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'providers') diff --git a/providers/Provider.php b/providers/Provider.php index bf85f12..434b1d1 100644 --- a/providers/Provider.php +++ b/providers/Provider.php @@ -30,7 +30,7 @@ abstract class Provider { protected function _getItems() { $cacheFile = sprintf($this->_getCachePath(), $this->_feed); - $this->_cacheTime = file_exists($cacheFile) ? filemtime($cacheFile) : 0; + $this->_cacheTime = file_exists($cacheFile) ? filemtime($cacheFile) : PHP_INT_MIN; if ($this->_cacheTime > strtotime('-' . $this->_cacheTimeout)) { return unserialize($this->_getCache($cacheFile)); } else { -- cgit v1.2.3