aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/cache
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/cache')
-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,