From 3f6d68d9671ddb7ba1c4f3a35021b84856dafb6a Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 21 Jul 2018 23:00:25 +0200 Subject: adding initial support for nodeinfo --- server/initializers/constants.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e66ebb662..e8e0da683 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -46,9 +46,11 @@ const OAUTH_LIFETIME = { } const ROUTE_CACHE_LIFETIME = { - FEEDS: 1000 * 60 * 15, // 15 minutes + FEEDS: '15 minutes', + ROBOTS: '2 hours', + NODEINFO: '10 minutes', ACTIVITY_PUB: { - VIDEOS: 1000 // 1 second, cache concurrent requests after a broadcast for example + VIDEOS: '1 second' // 1 second, cache concurrent requests after a broadcast for example } } -- cgit v1.2.3