aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-03 18:14:05 +0200
committerChocobozzz <me@florianbigard.com>2018-09-04 08:58:33 +0200
commit558187a72fc75b22f762af7b6608d15b2420f8df (patch)
treeff9ca7d5b982b562ce2d6f1c41e17d00ebd9854e /server
parent8ea6f49ad7b6deb63e31dffc2acf55cbc479da60 (diff)
downloadPeerTube-558187a72fc75b22f762af7b6608d15b2420f8df.tar.gz
PeerTube-558187a72fc75b22f762af7b6608d15b2420f8df.tar.zst
PeerTube-558187a72fc75b22f762af7b6608d15b2420f8df.zip
Fix overview cache
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/overviews.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts
index 56f921ce5..da941c0ac 100644
--- a/server/controllers/api/overviews.ts
+++ b/server/controllers/api/overviews.ts
@@ -1,7 +1,7 @@
1import * as express from 'express' 1import * as express from 'express'
2import { buildNSFWFilter } from '../../helpers/express-utils' 2import { buildNSFWFilter } from '../../helpers/express-utils'
3import { VideoModel } from '../../models/video/video' 3import { VideoModel } from '../../models/video/video'
4import { asyncMiddleware, executeIfActivityPub } from '../../middlewares' 4import { asyncMiddleware } from '../../middlewares'
5import { TagModel } from '../../models/video/tag' 5import { TagModel } from '../../models/video/tag'
6import { VideosOverview } from '../../../shared/models/overviews' 6import { VideosOverview } from '../../../shared/models/overviews'
7import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers' 7import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers'
@@ -10,7 +10,7 @@ import { cacheRoute } from '../../middlewares/cache'
10const overviewsRouter = express.Router() 10const overviewsRouter = express.Router()
11 11
12overviewsRouter.get('/videos', 12overviewsRouter.get('/videos',
13 executeIfActivityPub(asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS))), 13 asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS)),
14 asyncMiddleware(getVideosOverview) 14 asyncMiddleware(getVideosOverview)
15) 15)
16 16