diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index 5ae4b7a..b39143b 100755 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -206,17 +206,17 @@ public function doSetMultiple(array $items) { // Check if maximum expiration settings for cache bin is defined. If set, // enforce an upper limit for the expiration to allow for garbage // collection. - $max_lifetime = isset($this->configuration['max_lifetime']) ? $this->configuration['max_lifetime'] + REQUEST_TIME : Cache::PERMANENT; + $max_expire = isset($this->configuration['max_lifetime']) ? $this->configuration['max_lifetime'] + REQUEST_TIME : Cache::PERMANENT; foreach ($items as $cid => $item) { $item += array( - 'expire' => $max_lifetime, + 'expire' => $max_expire, 'tags' => array(), ); // If maximum expiration is set, enforce an upper limit on the expiry. - if ($max_lifetime !== Cache::PERMANENT && ($item['expire'] === Cache::PERMANENT || $item['expire'] > $max_lifetime)) { - $item['expire'] = $max_lifetime; + if ($max_expire !== Cache::PERMANENT && ($item['expire'] === Cache::PERMANENT || $item['expire'] > $max_expire)) { + $item['expire'] = $max_expire; } Cache::validateTags($item['tags']);