summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-02-14 10:59:47 +0100
committeremkael <emkael@tlen.pl>2019-02-14 10:59:47 +0100
commita799dd5738d486c6bf64ab9c0a14f172e8f3b33c (patch)
treeea411ad04c74d629103e6a5a41dda9cbc8809737
parent0a44c13af147f2689b128933de51b0caa685254c (diff)
Fix for very long ("forever") cache validity
-rw-r--r--providers/Provider.php2
1 files changed, 1 insertions, 1 deletions
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 {