aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-04 10:29:01 +0100
committerChocobozzz <me@florianbigard.com>2022-01-04 10:45:50 +0100
commitcea093bca5b9d311b5c1d0539d53e965c901015b (patch)
treea7e8992e2f130b56639e2aed2b819deae66ca34a
parent8f5a1f36b56369c92f4652d089c46aac45e6f76d (diff)
downloadPeerTube-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.ts4
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 @@
1import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' 1import { HttpStatusCode } from '../../../shared/models/http/http-error-codes'
2import { Redis } from '../../lib/redis'
3import { ApiCache, APICacheOptions } from './shared' 2import { ApiCache, APICacheOptions } from './shared'
4 3
5// Ensure Redis is initialized
6Redis.Instance.init()
7
8const defaultOptions: APICacheOptions = { 4const defaultOptions: APICacheOptions = {
9 excludeStatus: [ 5 excludeStatus: [
10 HttpStatusCode.FORBIDDEN_403, 6 HttpStatusCode.FORBIDDEN_403,