Fixing redis cachekey

This commit is contained in:
Philipp Holzer 2019-03-04 21:28:36 +01:00
parent d7426e697d
commit 07bd4cec65
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 55 additions and 16 deletions

View file

@ -65,12 +65,16 @@ class CacheLockDriver extends AbstractLockDriver
{
$cachekey = self::getLockKey($key);
$return = false;
if ($override) {
$this->cache->delete($cachekey);
$return = $this->cache->delete($cachekey);
} else {
$this->cache->compareDelete($cachekey, getmypid());
$return = $this->cache->compareDelete($cachekey, getmypid());
}
$this->markRelease($key);
return $return;
}
/**