diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-04 10:29:01 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-04 10:45:50 +0100 |
commit | cea093bca5b9d311b5c1d0539d53e965c901015b (patch) | |
tree | a7e8992e2f130b56639e2aed2b819deae66ca34a | |
parent | 8f5a1f36b56369c92f4652d089c46aac45e6f76d (diff) | |
download | PeerTube-cea093bca5b9d311b5c1d0539d53e965c901015b.tar.gz PeerTube-cea093bca5b9d311b5c1d0539d53e965c901015b.tar.zst PeerTube-cea093bca5b9d311b5c1d0539d53e965c901015b.zip |
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
-rw-r--r-- | server/middlewares/cache/cache.ts | 4 |
1 files changed, 0 insertions, 4 deletions
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 @@ | |||
1 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' | 1 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' |
2 | import { Redis } from '../../lib/redis' | ||
3 | import { ApiCache, APICacheOptions } from './shared' | 2 | import { ApiCache, APICacheOptions } from './shared' |
4 | 3 | ||
5 | // Ensure Redis is initialized | ||
6 | Redis.Instance.init() | ||
7 | |||
8 | const defaultOptions: APICacheOptions = { | 4 | const defaultOptions: APICacheOptions = { |
9 | excludeStatus: [ | 5 | excludeStatus: [ |
10 | HttpStatusCode.FORBIDDEN_403, | 6 | HttpStatusCode.FORBIDDEN_403, |