mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
Fix expire bug
This commit is contained in:
parent
dd04acdb59
commit
f051043421
|
|
@ -284,7 +284,7 @@ class FileCache implements CacheInterface
|
||||||
$created = Directory::created($path)->getTimestamp();
|
$created = Directory::created($path)->getTimestamp();
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
if ($expire >= 0 && $created + $expire > $now) {
|
if ($expire >= 0 && $created + $expire < $now) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user