Skip to content

Commit 91d949e

Browse files
Remove needless loading of Credis_Cluster class. Fixes #132
1 parent 77a0e53 commit 91d949e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Cm/Cache/Backend/Redis.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ public function __construct($options = array())
232232
unset($sentinel);
233233
}
234234

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

0 commit comments

Comments
 (0)