This line is causing issue when your redis is in master/slave replication mode. Command INFO is not allowed in replication mode.
$server_info = $this->redis->info( 'SERVER' );
Temporary fix.
@@ -572,11 +572,14 @@ class WP_Object_Cache
$this->redis->ping();
}
- $server_info = $this->redis->info( 'SERVER' );
- if (isset($server_info['redis_version'])) {
- $this->redis_version = $server_info['redis_version'];
- } elseif (isset( $server_info['Server']['redis_version'])) {
- $this->redis_version = $server_info['Server']['redis_version'];
+ // If not in replication mode.
+ if ( ! $options['replication'] ) {
+ $server_info = $this->redis->info( 'SERVER' );
+ if (isset($server_info['redis_version'])) {
+ $this->redis_version = $server_info['redis_version'];
+ } elseif (isset( $server_info['Server']['redis_version'])) {
+ $this->redis_version = $server_info['Server']['redis_version'];
+ }
}