Update CocoDB.php
This commit is contained in:
@@ -1168,8 +1168,8 @@ class CocoDB
|
||||
*/
|
||||
static function initCache()
|
||||
{
|
||||
$redisHost = '127.0.0.1';
|
||||
$redisPort = 6379;
|
||||
$redisHost = getenv('REDIS_HOST') ?: '127.0.0.1';
|
||||
$redisPort = (int)(getenv('REDIS_PORT') ?: 6379);
|
||||
|
||||
if (!self::$redis) {
|
||||
self::$redis = new Redis();
|
||||
|
||||
Reference in New Issue
Block a user