diff options
author | Andrey Andreev <narf@devilix.net> | 2016-03-11 17:12:57 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-03-11 17:12:57 +0100 |
commit | 1be8987176ad422ae6bc8af5c8f148eba9b5dff1 (patch) | |
tree | 66dc8c484270427a1c0972b8fa0dbc9790c61c71 /system/libraries/Cache/drivers/Cache_redis.php | |
parent | f56068bfd34e3ebc1325b049bf33901d855c7321 (diff) |
Fix a number of CI_Cache bugs
Fixes #4277
Supersedes #4474
Really fixes #4066
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index 81b49e2fc..e9194a499 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -91,6 +91,12 @@ class CI_Cache_redis extends CI_Driver */ public function __construct() { + if ( ! $this->is_supported()) + { + log_message('error', 'Cache: Failed to create Redis object; extension not loaded?'); + return; + } + $config = array(); $CI =& get_instance(); |