Set cache TTL for credits to 1 day

This commit is contained in:
2019-11-03 15:07:11 +01:00
parent 500b75eaf6
commit d2d396bb7a

View File

@@ -136,7 +136,7 @@ class TMDB {
return this.cache.get(cacheKey)
.catch(() => this.tmdb('movieCredits', query))
.catch(tmdbError => this.tmdbCreditsError(tmdbError))
.then(credits => this.cache.set(cacheKey, credits, 1))
.then(credits => this.cache.set(cacheKey, credits, 86400))
.then(credits => Credits.convertFromTmdbResponse(credits))
}