Skip to content

Commit

Permalink
Remove needless loading of Credis_Cluster class. Fixes #132
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour committed May 15, 2018
1 parent 77a0e53 commit 91d949e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cm/Cache/Backend/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ public function __construct($options = array())
unset($sentinel);
}

elseif (class_exists('Credis_Cluster') && array_key_exists('cluster', $options) && !empty($options['cluster'])) {
// Instantiate Credis_Cluster
else if ( ! empty($options['cluster'])) {
$this->_setupReadWriteCluster($options);
}

Expand Down

0 comments on commit 91d949e

Please sign in to comment.