Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(cache): Set default Redis port to 0 for UNIX sockets
  • Loading branch information
joshtrichards authored and backportbot[bot] committed Sep 8, 2025
commit 7993190bc6e564c13cb4ed46a4a5bb9e7265942c
2 changes: 1 addition & 1 deletion lib/private/RedisFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function create() {
$this->instance = new \Redis();

$host = $config['host'] ?? '127.0.0.1';
$port = $config['port'] ?? ($host[0] !== '/' ? 6379 : null);
$port = $config['port'] ?? ($host[0] !== '/' ? 6379 : 0);

$this->eventLogger->start('connect:redis', 'Connect to redis and send AUTH, SELECT');
// Support for older phpredis versions not supporting connectionParameters
Expand Down
Loading