We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7248457 commit d1b6103Copy full SHA for d1b6103
object-cache.php
@@ -1264,6 +1264,8 @@ public function build_client_parameters( $redis_server ) {
1264
if ( file_exists( $redis_server['host'] ) && 'socket' === filetype( $redis_server['host'] ) ) { // unix socket connection.
1265
// port must be null or socket won't connect.
1266
$port = null;
1267
+ } elseif ( ! empty( $redis_server['port'] ) ) { // tcp connection.
1268
+ $port = $redis_server['port'];
1269
}
1270
1271
$defaults = [
0 commit comments