diff --git a/src/class-wp-redis-object-cache.php b/src/class-wp-redis-object-cache.php index b7a5921..ce3d4fe 100644 --- a/src/class-wp-redis-object-cache.php +++ b/src/class-wp-redis-object-cache.php @@ -230,8 +230,10 @@ public function __construct($fail_gracefully = true) $this->redis_client .= sprintf(' (v%s)', Predis\Client::VERSION); } - // Throws exception if Redis is unavailable - $this->redis->ping(); + if (! defined('WP_REDIS_CLUSTER')) { + // Throws exception if Redis is unavailable + $this->redis->ping(); + } $this->redis_connected = true; } catch (Exception $exception) {