diff --git a/cms/lib/classes/CocoDB.php b/cms/lib/classes/CocoDB.php index a0766b9..d6e577b 100755 --- a/cms/lib/classes/CocoDB.php +++ b/cms/lib/classes/CocoDB.php @@ -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();