From d7426e697d62553b2c0d761ffc7c1e0bf3a41951 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Mon, 4 Mar 2019 21:09:20 +0100 Subject: [PATCH] Fixing redis cachekey --- src/Core/Cache/RedisCacheDriver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Cache/RedisCacheDriver.php b/src/Core/Cache/RedisCacheDriver.php index 55dc09156a..6559cf6a72 100644 --- a/src/Core/Cache/RedisCacheDriver.php +++ b/src/Core/Cache/RedisCacheDriver.php @@ -144,14 +144,14 @@ class RedisCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver $this->redis->watch($cachekey); // If the old value isn't what we expected, somebody else changed the key meanwhile - if ($this->get($cachekey) === $oldValue) { + if ($this->get($key) === $oldValue) { if ($ttl > 0) { $result = $this->redis->multi() ->setex($cachekey, $ttl, $newCached) ->exec(); } else { $result = $this->redis->multi() - ->set($cachekey, $newValue) + ->set($cachekey, $newCached) ->exec(); } return $result !== false; @@ -169,7 +169,7 @@ class RedisCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver $this->redis->watch($cachekey); // If the old value isn't what we expected, somebody else changed the key meanwhile - if ($this->get($cachekey) === $value) { + if ($this->get($key) === $value) { $result = $this->redis->multi() ->del($cachekey) ->exec(); -- 2.39.5