MDL-66139 cachestore_redis: Fix connection problems when port is not set
commit77399dd147b315b74e1cbad0dbe9677f98e780a9
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:58:46 +0000 (28 20:58 +0200)
treeda5d033a048108350ced68296f1a7499e7ed931d
parent684d142401f82761064367d027b11ff701be95cc
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