diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-08 14:27:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-08 14:27:53 +0100 |
commit | 119d8a7547e155edaaa53682b9247cd7e80d8c9d (patch) | |
tree | cfcaa9dae3b642833d80c06b00805ba2d521c953 /system/libraries/Cache | |
parent | cab3e1813f71bddfe8f045772e5cb42e76a4d347 (diff) |
Optimize get_instance() calls/assignments
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index f13e4479f..48c803d7e 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -208,7 +208,7 @@ class CI_Cache_redis extends CI_Driver { $success = $this->_redis->connect($config['host'], $config['port'], $config['timeout']); } - + if ( ! $success) { log_message('debug', 'Cache: Redis connection refused. Check the config.'); @@ -225,7 +225,7 @@ class CI_Cache_redis extends CI_Driver { $this->_redis->auth($config['password']); } - + return TRUE; } |