Set cache TTL for credits to 1 day
This commit is contained in:
@@ -136,7 +136,7 @@ class TMDB {
|
|||||||
return this.cache.get(cacheKey)
|
return this.cache.get(cacheKey)
|
||||||
.catch(() => this.tmdb('movieCredits', query))
|
.catch(() => this.tmdb('movieCredits', query))
|
||||||
.catch(tmdbError => this.tmdbCreditsError(tmdbError))
|
.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))
|
.then(credits => Credits.convertFromTmdbResponse(credits))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user