We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f76c2 commit fbcfa11Copy full SHA for fbcfa11
includes/object-cache.php
@@ -1151,11 +1151,16 @@ public function fetch_info() {
1151
if ( $this->is_predis() ) {
1152
$connection = $this->redis->getConnection();
1153
if ( $connection instanceof Predis\Connection\Replication\ReplicationInterface ) {
1154
+ $node = $connection->getCurrent();
1155
$connection->switchToMaster();
1156
}
1157
1158
1159
$info = $this->redis->info();
1160
+
1161
+ if ( isset( $node ) ) {
1162
+ $connection->switchTo($node);
1163
+ }
1164
1165
1166
if ( isset( $info['redis_version'] ) ) {
0 commit comments