From 7019e02f6101f1d52768b7a3742aee87f5ca4581 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 9 Aug 2020 09:19:15 -0400 Subject: [PATCH] Fix unexpected return value of RedisCache->delete() - Address https://github.com/friendica/friendica/issues/8876#issuecomment-671025374 --- src/Core/Cache/RedisCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } /**