From cea093bca5b9d311b5c1d0539d53e965c901015b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Jan 2022 10:29:01 +0100 Subject: Fix redis connection timeout We don't need to start it at this point And it could lead to issues when nodejs is compiling peertube using sync calls --- server/middlewares/cache/cache.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'server') diff --git a/server/middlewares/cache/cache.ts b/server/middlewares/cache/cache.ts index 48162a0ae..e14160ba8 100644 --- a/server/middlewares/cache/cache.ts +++ b/server/middlewares/cache/cache.ts @@ -1,10 +1,6 @@ import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' -import { Redis } from '../../lib/redis' import { ApiCache, APICacheOptions } from './shared' -// Ensure Redis is initialized -Redis.Instance.init() - const defaultOptions: APICacheOptions = { excludeStatus: [ HttpStatusCode.FORBIDDEN_403, -- cgit v1.2.3