diff options
author | Ivan Tcholakov <ivantcholakov@gmail.com> | 2014-08-18 11:30:04 +0200 |
---|---|---|
committer | Ivan Tcholakov <ivantcholakov@gmail.com> | 2014-08-18 11:30:04 +0200 |
commit | 52b32530a8503d7da29c24ff72701b6eef28742d (patch) | |
tree | 838131361aab66bbb4a085a3a4725b341b48984e | |
parent | d514d5c436e599942f9cb00475f0543e705c9a0f (diff) |
Cache_redis, save() method: An optimization, moving sRemove call.
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 3 |
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) |