diff --git a/object-cache.php b/object-cache.php index e84beef..e831330 100644 --- a/object-cache.php +++ b/object-cache.php @@ -1268,7 +1268,7 @@ public function build_client_parameters( $redis_server ) { } } - if ( file_exists( $redis_server['host'] ) && 'socket' === filetype( $redis_server['host'] ) ) { // unix socket connection. + if ( ! preg_match('/^(tl|redis?)s:\/\//', $redis_server['host']) && file_exists( $redis_server['host'] ) && 'socket' === filetype( $redis_server['host'] ) ) { // unix socket connection. // port must be null or socket won't connect. unset( $redis_server['port'] ); $port = null;