diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d97edcc..7b5cb2f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Fixed issue with Predis and `SentinelReplication` connection + ## 2.5.3 - Added `WP_REDIS_DISABLE_GROUP_FLUSH` constant diff --git a/includes/object-cache.php b/includes/object-cache.php index f9a5526e..273583aa 100644 --- a/includes/object-cache.php +++ b/includes/object-cache.php @@ -1147,7 +1147,7 @@ public function fetch_info() { $info = $this->is_predis() ? $this->redis->getClientBy( 'id', $connectionId )->info() : $this->redis->info( $connectionId ); - } else if ($this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\MasterSlaveReplication) { + } else if ($this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\ReplicationInterface) { $info = $this->redis->getClientBy( 'role' , 'master' )->info(); } else { $info = $this->redis->info();