diff --git a/libraries/joomla/cache/storage/redis.php b/libraries/joomla/cache/storage/redis.php index c98c140f58ca5..4fb00d84bf1f1 100644 --- a/libraries/joomla/cache/storage/redis.php +++ b/libraries/joomla/cache/storage/redis.php @@ -66,8 +66,15 @@ protected function getConnection() return false; } - $app = JFactory::getApplication(); $config = JFactory::getConfig(); + $app = JFactory::getApplication(); + + $caching = (bool)$config->get('caching'); + if ($caching == false) + { + return false; + } + $this->_persistent = $config->get('redis_persist', true); $server = array();