Skip to content

Commit 812b5f9

Browse files
authored
change style
1 parent 5f9ab1a commit 812b5f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/object-cache.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1147,10 +1147,10 @@ public function fetch_info() {
11471147
$info = $this->is_predis()
11481148
? $this->redis->getClientBy( 'id', $connectionId )->info()
11491149
: $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();
11501152
} else {
1151-
$info = $this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\MasterSlaveReplication
1152-
? $this->redis->getClientBy( 'role' , 'master' )->info()
1153-
: $this->redis->info();
1153+
$info = $this->redis->info();
11541154
}
11551155

11561156
if ( isset( $info['redis_version'] ) ) {

0 commit comments

Comments
 (0)