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