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:
parent
cff8b272b1
commit
4195cd2bc5
4 changed files with 113 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue