From: Philipp Holzer Date: Sat, 7 Jul 2018 16:39:33 +0000 (+0200) Subject: bug in redis delete function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f95c42080114e6d8771bf7d278cb8b46ffb9bafd;p=friendica.git bug in redis delete function --- diff --git a/src/Core/Cache/RedisCacheDriver.php b/src/Core/Cache/RedisCacheDriver.php index c0006822d5..70412fd215 100644 --- a/src/Core/Cache/RedisCacheDriver.php +++ b/src/Core/Cache/RedisCacheDriver.php @@ -74,7 +74,8 @@ class RedisCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver public function delete($key) { - return $this->redis->delete($key); + $cachekey = $this->getCacheKey($key); + return ($this->redis->delete($cachekey) > 0); } public function clear()