mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Fix issue processwire/processwire-issues#844
This commit is contained in:
@@ -534,7 +534,7 @@ class WireCache extends Wire {
|
||||
|
||||
} else if(is_string($expire) && isset($this->expireNames[$expire])) {
|
||||
// named expiration constant like "hourly", "daily", etc.
|
||||
$expire = $this->expireNames[$expire];
|
||||
$expire = time() + $this->expireNames[$expire];
|
||||
|
||||
} else if(in_array($expire, array(self::expireNever, self::expireSave))) {
|
||||
// good, we'll take it as-is
|
||||
|
Reference in New Issue
Block a user