We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mtime
1 parent 3cd621b commit 60327bcCopy full SHA for 60327bc
src/File.php
@@ -82,7 +82,7 @@ protected function getTtl(string $cacheFile)
82
? (int)file_get_contents("$cacheFile.ttl")
83
: PHP_INT_MAX;
84
case 'mtime':
85
- return $this->getTtl($cacheFile) > 0 ? filemtime($cacheFile) + $this->ttl : PHP_INT_MAX;
+ return $this->ttl > 0 ? filemtime($cacheFile) + $this->ttl : PHP_INT_MAX;
86
}
87
88
throw new \InvalidArgumentException("Invalid TTL strategy '{$this->ttlStrategy}'");
0 commit comments