summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers/Cache_redis.php
diff options
context:
space:
mode:
authorFieah <im@fieah.com>2015-02-22 10:08:35 +0100
committerFieah <im@fieah.com>2015-02-22 10:08:35 +0100
commitbc834c327407184867f363ad58a24e6733a85b66 (patch)
treebca6ca9c362d4085a075b8ea9870c6288c6ee1a8 /system/libraries/Cache/drivers/Cache_redis.php
parent1701ad24e7b52df9e0dd51ef7a9a4bb9a99f28bf (diff)
Cache: is_supported
1. Cache_redis: Standardize the style as other driver. 2. Cache_wincache: Also check wincache.ucenabled
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index f2a41cc67..5236556d9 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -243,15 +243,13 @@ class CI_Cache_redis extends CI_Driver
*/
public function is_supported()
{
- if (extension_loaded('redis'))
- {
- return $this->_setup_redis();
- }
- else
+ if ( ! extension_loaded('redis'))
{
log_message('debug', 'The Redis extension must be loaded to use Redis cache.');
return FALSE;
}
+
+ return $this->_setup_redis();
}
// ------------------------------------------------------------------------