mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-66139_35' of https://github.com/stronk7/moodle into MOODLE_35_STABLE
This commit is contained in:
commit
f8798a6b07
1 changed files with 2 additions and 1 deletions
3
cache/stores/redis/lib.php
vendored
3
cache/stores/redis/lib.php
vendored
|
@ -150,7 +150,8 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
|
|||
*/
|
||||
protected function new_redis($server, $prefix = '', $password = '') {
|
||||
$redis = new Redis();
|
||||
$port = null;
|
||||
// Check if it isn't a Unix socket to set default port.
|
||||
$port = ($server[0] === '/') ? null : 6379;
|
||||
if (strpos($server, ':')) {
|
||||
$serverconf = explode(':', $server);
|
||||
$server = $serverconf[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue