summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers
diff options
context:
space:
mode:
authorftwbzhao <b.zhao1@gmail.com>2015-04-07 12:36:51 +0200
committerftwbzhao <b.zhao1@gmail.com>2015-04-07 12:52:28 +0200
commit9b9a06c9635cd3b4fce0aebe4d2eead4809999a5 (patch)
tree1e1c85bb5a8158fcd6b7048d1ab960d7a29cc170 /system/libraries/Cache/drivers
parent7abc08acbeec7437b72d44e5e1a3500f7f6ac766 (diff)
[feature] check redis auth failed
Diffstat (limited to 'system/libraries/Cache/drivers')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index a35fbf6d2..d97643632 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -302,7 +302,11 @@ class CI_Cache_redis extends CI_Driver
if (isset($config['password']))
{
- $this->_redis->auth($config['password']);
+ if ( ! $this->_redis->auth($config['password']))
+ {
+ log_message('debug', 'Cache: Redis authentication failed.');
+ return FALSE;
+ }
}
// Initialize the index of serialized values.