-
Bug
-
Resolution: Fixed
-
Minor
-
4.4
-
2
-
Team Hedgehog 2024 Sprint 2.1, Team Hedgehog 2024 Sprint 2.2
In Moodle 4.4, the Redis cache code was updated to support cluster mode configuration (MDL-63128).
However, this introduced an issue where Redis cache configurations with TLS enabled, with an error Exception - Redis::connect(): Argument #2 ($port) must be of type int, string given
Specifically, the issue is https://github.com/moodle/moodle/blob/v4.4.0/cache/stores/redis/lib.php#L263 - if encryption is enabled, then the string $trimmedservers[0] will be "tls://redis.example:6380", which gets exploded to $server="tls" and $port="//redis.example".