瀏覽代碼
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
tags/v4.1.0-rc.1
Chocobozzz
4 月之前
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 583A612D890159BE
共有
1 個文件被更改,包括
0 次插入 和
4 次删除
-
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, |
|
|
|