]> git.mxchange.org Git - friendica.git/commitdiff
bug in redis delete function
authorPhilipp Holzer <admin@philipp.info>
Sat, 7 Jul 2018 16:39:33 +0000 (18:39 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sat, 7 Jul 2018 16:39:33 +0000 (18:39 +0200)
src/Core/Cache/RedisCacheDriver.php

index c0006822d5f672ac7df5695f1b97b0c56746f203..70412fd2152751fcdb1c2a4e457394707c5d9244 100644 (file)
@@ -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()