Skip to content

Commit

Permalink
Merge branch 'MDL-66139' of https://github.com/stronk7/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Aug 29, 2019
2 parents 5872c4d + d17bf23 commit 9e93b2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cache/stores/redis/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public function __construct($name, array $configuration = array()) {
*/
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];
Expand Down

0 comments on commit 9e93b2f

Please sign in to comment.