Skip to content

Commit 7febc1d

Browse files
committed
Merge branch 'MC-34211' into MC-33275-2
2 parents f51dbc9 + 2cfcb1e commit 7febc1d

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/Lock/Backend

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Lock/Backend/Cache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function lock(string $name, int $timeout = -1): bool
5555
return false;
5656
}
5757

58-
$this->cache->save($this->lockSign, $this->getIdentifier($name), [], $timeout * 100);
58+
$timeout = $timeout <= 0 ? null : $timeout;
59+
$this->cache->save($this->lockSign, $this->getIdentifier($name), [], $timeout);
5960

6061
$data = $this->cache->load($this->getIdentifier($name));
6162

0 commit comments

Comments
 (0)