We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29e3af commit d83a0aeCopy full SHA for d83a0ae
lib/internal/Magento/Framework/Lock/Backend/Cache.php
@@ -45,7 +45,12 @@ public function __construct(FrontendInterface $cache)
45
public function lock(string $name, int $timeout = -1): bool
46
{
47
if (empty($this->lockSign)) {
48
- $this->lockSign = \bin2hex(\random_bytes(8));
+ $this->lockSign = implode(
49
+ '-',
50
+ [
51
+ \getmypid(), \crc32(\gethostname()), \bin2hex(\random_bytes(4))
52
+ ]
53
+ );
54
}
55
56
$data = $this->cache->load($this->getIdentifier($name));
0 commit comments