JOBS: [ 'createdAt' ],
VIDEO_ABUSES: [ 'id', 'createdAt' ],
VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ],
- VIDEOS: [ 'name', 'duration', 'createdAt', 'views', 'likes' ],
+ VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ],
VIDEO_COMMENT_THREADS: [ 'createdAt' ],
BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ],
FOLLOWERS: [ 'createdAt' ],
REFRESH_TOKEN: 1209600 // 2 weeks
}
+const ROUTE_CACHE_LIFETIME = {
+ FEEDS: 1000 * 60 * 15, // 15 minutes
+ ACTIVITY_PUB: {
+ VIDEOS: 1000 // 1 second, cache concurrent requests after a broadcast for example
+ }
+}
+
// ---------------------------------------------------------------------------
// Number of points we add/remove after a successful/bad request
CUSTOMIZATIONS: {
get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') },
get CSS () { return config.get<string>('instance.customizations.css') }
- }
+ },
+ get ROBOTS () { return config.get<string>('instance.robots') }
},
SERVICES: {
TWITTER: {
// ---------------------------------------------------------------------------
const FEEDS = {
- COUNT: 20,
- CACHE_LIFETIME: 1000 * 60 * 15 // 15 minutes
+ COUNT: 20
}
// ---------------------------------------------------------------------------
FOLLOW_STATES,
SERVER_ACTOR_NAME,
PRIVATE_RSA_KEY_SIZE,
+ ROUTE_CACHE_LIFETIME,
SORTABLE_COLUMNS,
FEEDS,
NSFW_POLICY_TYPES,