Skip to content

Commit

Permalink
added caching restriction
Browse files Browse the repository at this point in the history
don't use Redis is Caching is not enabled in config.
  • Loading branch information
hans2103 committed May 31, 2014
1 parent c3d3e95 commit 9f09692
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/joomla/cache/storage/redis.php
Expand Up @@ -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();
Expand Down

0 comments on commit 9f09692

Please sign in to comment.