1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Add redis cache to feed route

This commit is contained in:
Chocobozzz 2018-04-17 14:01:06 +02:00
parent cff8b272b1
commit 4195cd2bc5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 113 additions and 16 deletions

View file

@ -423,6 +423,13 @@ const OPENGRAPH_AND_OEMBED_COMMENT = '<!-- open graph and oembed tags -->'
// ---------------------------------------------------------------------------
const FEEDS = {
COUNT: 20,
CACHE_LIFETIME: 1000 * 60 * 15 // 15 minutes
}
// ---------------------------------------------------------------------------
// Special constants for a test instance
if (isTestInstance() === true) {
ACTOR_FOLLOW_SCORE.BASE = 20
@ -462,6 +469,7 @@ export {
SERVER_ACTOR_NAME,
PRIVATE_RSA_KEY_SIZE,
SORTABLE_COLUMNS,
FEEDS,
STATIC_MAX_AGE,
STATIC_PATHS,
ACTIVITY_PUB,