From 4688c553106e3157cd46fe9eb6bb9e7d42691506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Thu, 24 Jan 2019 11:42:54 +0100 Subject: [PATCH] Update class-wp-redis-object-cache.php --- src/class-wp-redis-object-cache.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {