1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00
This commit is contained in:
Ryan Cramer
2023-06-26 10:33:56 -04:00
parent c049dd4f58
commit c8e9b6c65a

View File

@@ -489,7 +489,7 @@ class WireCache extends Wire {
public function save($name, $data, $expire = self::expireDaily) {
$options = array(); // additional data to pass along to cacher save() method
if(empty($expire)) $expire = self::expireDaily;
if(empty($expire) && $expire !== self::expireNow) $expire = self::expireDaily;
if($expire === WireCache::expireSelector) {
$this->cacheNameSelectors = null;