summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-04-09 16:41:09 +0200
committerAndrey Andreev <narf@devilix.net>2015-04-09 16:41:09 +0200
commit5add0fc9e508ae415878bc84179c1791e749008c (patch)
treeea9d94ee482a80b77771a7285f8fe9f64a7c7552 /system/libraries/Cache
parentfd363f224d7886eb686434d7a835eaa49183d8e6 (diff)
parentebfc48a9ee05dbd96a372894ab65f6287fe6c398 (diff)
Merge pull request #3744 from ftwbzhao/develop
[ci skip] Cache/Redis authentication failure handling
Diffstat (limited to 'system/libraries/Cache')
-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 114c32983..b940b76cb 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.