diff --git a/includes/classes/Elasticsearch.php b/includes/classes/Elasticsearch.php index 4081c746da..4830e59ddf 100644 --- a/includes/classes/Elasticsearch.php +++ b/includes/classes/Elasticsearch.php @@ -1276,8 +1276,7 @@ public function parse_api_response( $response ) { * @return array */ public function get_elasticsearch_info( $force = false ) { - - if ( $force || null === $this->elasticsearch_version || null === $this->elasticsearch_plugins ) { + if ( ! empty( Utils\get_host() ) && ( $force || null === $this->elasticsearch_version || null === $this->elasticsearch_plugins ) ) { // Get ES info from cache if available. If we are forcing, then skip cache check. if ( $force ) {