Skip to content

Commit 3ad9f34

Browse files
committed
MC-33275: Stale cache implementation
1 parent 8d50cf4 commit 3ad9f34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ public function getCapabilities()
355355
*/
356356
private function lock(string $id): bool
357357
{
358-
$timeout = 10;
359358
$this->lockArray[$id] = microtime(true);
360359

361360
$data = $this->remote->load($this->getLockName($id));
@@ -364,7 +363,7 @@ private function lock(string $id): bool
364363
return false;
365364
}
366365

367-
$this->remote->save($this->lockSign, $this->getLockName($id), [], $timeout * 100);
366+
$this->remote->save($this->lockSign, $this->getLockName($id), [], 10);
368367

369368
$data = $this->remote->load($this->getLockName($id));
370369

0 commit comments

Comments
 (0)