mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-18 20:32:02 +00:00
reduce cdn cache time
This commit is contained in:
parent
588e9b9330
commit
dab8fe0ae3
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const applySorting = require('./lib/sort');
|
|||
const applyFilters = require('./lib/filter');
|
||||
const { applyMochs, getMochCatalog, getMochItemMeta } = require('./moch/moch');
|
||||
|
||||
const CACHE_MAX_AGE = parseInt(process.env.CACHE_MAX_AGE) || 4 * 60 * 60; // 4 hours in seconds
|
||||
const CACHE_MAX_AGE = parseInt(process.env.CACHE_MAX_AGE) || 60 * 60; // 1 hour in seconds
|
||||
const CACHE_MAX_AGE_EMPTY = 60; // 60 seconds
|
||||
const STALE_REVALIDATE_AGE = 4 * 60 * 60; // 4 hours
|
||||
const STALE_ERROR_AGE = 7 * 24 * 60 * 60; // 7 days
|
||||
|
|
|
|||
Loading…
Reference in a new issue