- π¨π¦Canada joelpittet Vancouver
This seems to work like a charm, I followed the steps to reproduce and it shows it connected even without cache bin.
Note it does fail to apply if β¨ Allow failing over to database or other backends if Redis is down RTBC is applied, so might need to re-roll that after this is in.
- Status changed to Needs work
almost 2 years ago 9:47pm 7 June 2023 - π¨πSwitzerland berdir Switzerland
+++ b/src/Client/PhpRedis.php @@ -25,11 +24,17 @@ class PhpRedis implements ClientInterface { } - if ($persistent) { - $client->pconnect($host, $port); + try { + if ($persistent) { + $client->pconnect($host, $port); + } + else { + $client->connect($host, $port); + } } - else { - $client->connect($host, $port);
The relay client is the same, so that should be updated now as well to be kept in sync.