summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers/Cache_redis.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-03-22 17:37:21 +0100
committerAndrey Andreev <narf@devilix.net>2015-03-22 17:37:21 +0100
commit7ad59209ad2443b8ea113222e3cab38ab305da92 (patch)
treeb2d9078b2686cad358ec4e17a73878f942d20704 /system/libraries/Cache/drivers/Cache_redis.php
parent737a5660c09e844d44969d1b7e8165b5f0296e37 (diff)
parent01015d910f4b3361153c00173ba2998d0b312ba7 (diff)
Merge pull request #3690 from mafooo/redis_cache_save_fix
Fixed redis cache save logic
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 5236556d9..a35fbf6d2 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -111,7 +111,7 @@ class CI_Cache_redis extends CI_Driver
{
if (is_array($data) OR is_object($data))
{
- if ( ! $this->_redis->sAdd('_ci_redis_serialized', $id))
+ if ( ! $this->_redis->sIsMember('_ci_redis_serialized', $id) && ! $this->_redis->sAdd('_ci_redis_serialized', $id))
{
return FALSE;
}