summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers
diff options
context:
space:
mode:
authorIvan Tcholakov <ivantcholakov@gmail.com>2014-08-18 11:30:04 +0200
committerIvan Tcholakov <ivantcholakov@gmail.com>2014-08-18 11:30:04 +0200
commit52b32530a8503d7da29c24ff72701b6eef28742d (patch)
tree838131361aab66bbb4a085a3a4725b341b48984e /system/libraries/Cache/drivers
parentd514d5c436e599942f9cb00475f0543e705c9a0f (diff)
Cache_redis, save() method: An optimization, moving sRemove call.
Diffstat (limited to 'system/libraries/Cache/drivers')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index b5387c064..26de61db8 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -114,9 +114,8 @@ class CI_Cache_redis extends CI_Driver
if (($index_key = array_search($id, $this->_serialized, TRUE)) !== FALSE)
{
unset($this->_serialized[$index_key]);
+ $this->_redis->sRemove('_ci_redis_serialized', $id);
}
-
- $this->_redis->sRemove('_ci_redis_serialized', $id);
}
return ($ttl)