mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 13:28:42 +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();
|
||||
$now = time();
|
||||
|
||||
if ($expire >= 0 && $created + $expire > $now) {
|
||||
if ($expire >= 0 && $created + $expire < $now) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user