diff options
author | Kakysha <ezhikvdele@gmail.com> | 2013-10-28 18:30:05 +0100 |
---|---|---|
committer | Kakysha <ezhikvdele@gmail.com> | 2013-10-28 18:30:05 +0100 |
commit | ffe2130b00bffb2f43debf82c34586642c831b0b (patch) | |
tree | e984e2c182e2ed68a56a82a64aa8f205db7a59b3 /system/libraries/Cache | |
parent | 2d14673d1a513a372a5921775aa3987f8444477e (diff) |
some code rewrite
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index b0315a3ab..0bbd5b05c 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -202,12 +202,12 @@ class CI_Cache_redis extends CI_Driver { if ($config['socket_type'] === 'unix') { - $v = $this->_redis->connect($config['socket']); + $success = $this->_redis->connect($config['socket']); } else // tcp socket { - $v = $this->_redis->connect($config['host'], $config['port'], $config['timeout']); + $success = $this->_redis->connect($config['host'], $config['port'], $config['timeout']); } - if (!$v) + if ( ! $success) { log_message('debug','Redis connection refused. Check the config.'); return FALSE; |