Misc updates to caching from plex and tmdb.

This commit is contained in:
2020-04-08 23:01:33 +02:00
parent 776f83553a
commit 2b25397253
2 changed files with 9 additions and 8 deletions

View File

@@ -205,7 +205,7 @@ class TMDB {
const cacheKey = `tmdb/${this.cacheTags[listname]}:${page}`;
return this.getFromCacheOrFetchFromTmdb(cacheKey, listname, query)
.then(response => this.cache.set(cacheKey, response, 10800))
.then(response => this.cache.set(cacheKey, response, this.defaultTTL))
.then(response => this.mapResults(response, 'movie'))
}
@@ -214,7 +214,7 @@ class TMDB {
const cacheKey = `tmdb/${this.cacheTags[listname]}:${page}`;
return this.getFromCacheOrFetchFromTmdb(cacheKey, listName, query)
.then(response => this.cache.set(cacheKey, response, 10800))
.then(response => this.cache.set(cacheKey, response, this.defaultTTL))
.then(response => this.mapResults(response, 'show'))
}