diff --git a/object-cache.php b/object-cache.php index d2f3ced..e15f02d 100644 --- a/object-cache.php +++ b/object-cache.php @@ -1261,7 +1261,7 @@ public function build_client_parameters( $redis_server ) { } } - if ( file_exists( $redis_server['host'] ) && 'socket' === filetype( $redis_server['host'] ) ) { // unix socket connection. + if ( strpos($redis_server['host'], 'unix:///') === 0 ) ) { // Unix socket connection. // port must be null or socket won't connect. $port = null; }