From d2d396bb7a14478497f4b5b8a7d52e64a3db8199 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 3 Nov 2019 15:07:11 +0100 Subject: [PATCH] Set cache TTL for credits to 1 day --- seasoned_api/src/tmdb/tmdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/src/tmdb/tmdb.js b/seasoned_api/src/tmdb/tmdb.js index ab8c847..91fc81a 100644 --- a/seasoned_api/src/tmdb/tmdb.js +++ b/seasoned_api/src/tmdb/tmdb.js @@ -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)) }