From: Hypolite Petovan Date: Sun, 9 Aug 2020 13:19:15 +0000 (-0400) Subject: Fix unexpected return value of RedisCache->delete() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7019e02f6101f1d52768b7a3742aee87f5ca4581;p=friendica.git Fix unexpected return value of RedisCache->delete() - Address https://github.com/friendica/friendica/issues/8876#issuecomment-671025374 --- diff --git a/src/Core/Cache/RedisCache.php b/src/Core/Cache/RedisCache.php index 9a982fe040..5dbb963882 100644 --- a/src/Core/Cache/RedisCache.php +++ b/src/Core/Cache/RedisCache.php @@ -139,7 +139,9 @@ class RedisCache extends BaseCache implements IMemoryCache public function delete($key) { $cachekey = $this->getCacheKey($key); - return ($this->redis->del($cachekey) > 0); + $this->redis->del($cachekey); + // Redis doesn't have an error state for del() + return true; } /**