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 Sep 7, 2025
commit 3a8b2b843e3cc2a1d75ee359cf97030899f2a886
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