summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 20378785a..b5387c064 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -134,10 +134,13 @@ class CI_Cache_redis extends CI_Driver
*/
public function delete($key)
{
- // This is for not leaving garbage keys within the Redis auxilary set.
- $this->_redis->sRemove('_ci_redis_serialized', $key);
+ if ($result = ($this->_redis->delete($key) === 1))
+ {
+ // This is for not leaving garbage keys within the Redis auxilary set.
+ $this->_redis->sRemove('_ci_redis_serialized', $key);
+ }
- return ($this->_redis->delete($key) === 1);
+ return $result;
}
// ------------------------------------------------------------------------