diff options
author | ftwbzhao <b.zhao1@gmail.com> | 2015-04-07 12:36:51 +0200 |
---|---|---|
committer | ftwbzhao <b.zhao1@gmail.com> | 2015-04-07 12:52:28 +0200 |
commit | 9b9a06c9635cd3b4fce0aebe4d2eead4809999a5 (patch) | |
tree | 1e1c85bb5a8158fcd6b7048d1ab960d7a29cc170 | |
parent | 7abc08acbeec7437b72d44e5e1a3500f7f6ac766 (diff) |
[feature] check redis auth failed
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 6 |
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. |