We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f9ab1a commit 812b5f9Copy full SHA for 812b5f9
includes/object-cache.php
@@ -1147,10 +1147,10 @@ public function fetch_info() {
1147
$info = $this->is_predis()
1148
? $this->redis->getClientBy( 'id', $connectionId )->info()
1149
: $this->redis->info( $connectionId );
1150
+ } else if ($this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\MasterSlaveReplication) {
1151
+ $info = $this->redis->getClientBy( 'role' , 'master' )->info();
1152
} else {
- $info = $this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\MasterSlaveReplication
- ? $this->redis->getClientBy( 'role' , 'master' )->info()
1153
- : $this->redis->info();
+ $info = $this->redis->info();
1154
}
1155
1156
if ( isset( $info['redis_version'] ) ) {
0 commit comments