Skip to content

Commit 0c6c986

Browse files
author
Lauri Kallioniemi
committed
enable heroku redis 6
1 parent 42b7b89 commit 0c6c986

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Redis.php

+4
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
ini_set('session.save_handler','redis');
1414
ini_set('session.save_path',"tcp://$url[host]:$url[port]?auth=$url[pass]");
1515
}
16+
if ($url['scheme'] == 'redis' || $url['scheme'] == 'rediss') {
17+
define('WP_REDIS_SCHEME', 'tls');
18+
define('WP_REDIS_STREAM_CONTEXT', ['stream' => ['verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ]]);
19+
}
1620
}

0 commit comments

Comments
 (0)