MDL-66139 cachestore_redis: Fix connection problems when port is not set
commit75259ad00f7e0239d01d4a9ff0a8f9af24406d39
authorNetica Informática <neticainformatica@gmail.com>
Fri, 16 Aug 2019 16:03:50 +0000 (16 18:03 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 28 Aug 2019 18:59:59 +0000 (28 20:59 +0200)
tree50990032d5f37682c3e6375de4e0b0f5aef072d2
parentde168198e6cdf2b2e393c8d8e3a611e37b8626d1
MDL-66139 cachestore_redis: Fix connection problems when port is not set

Due to some changes in Redis 5 php extension Moodle fails to connect via TCP when
no port is set. It's fixed upstream in phpredis repo (version 5.0.0, 5.0.1 and
5.0.2 affected so far), but with this patch we'll send the right port anyway.
cache/stores/redis/lib.php