Skip to content

Commit 03e9202

Browse files
committed
Update default parameter when using socket connection
port: pantheon-systems/wp-redis@7b03acd
1 parent f454f59 commit 03e9202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/dropins/redis-object-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ public function build_client_parameters( $redis_server ) {
12771277
if ( file_exists( $redis_server['host'] ) && 'socket' === filetype( $redis_server['host'] ) ) { // unix socket connection.
12781278
// port must be null or socket won't connect.
12791279
unset( $redis_server['port'] );
1280-
$port = null;
1280+
$port = -1;
12811281
}
12821282

12831283
$defaults = [

0 commit comments

Comments
 (0)