From ff5d94782ff9768d696a700a46d09fe8792a732a Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:45:03 +0800 Subject: [PATCH] fix(TMDB): adjust trending cache maxsize to 1024 --- app/modules/themoviedb/tmdbv3api/objs/trending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/themoviedb/tmdbv3api/objs/trending.py b/app/modules/themoviedb/tmdbv3api/objs/trending.py index 49ba53bd..2ea8476a 100644 --- a/app/modules/themoviedb/tmdbv3api/objs/trending.py +++ b/app/modules/themoviedb/tmdbv3api/objs/trending.py @@ -6,7 +6,7 @@ from ..tmdb import TMDb class Trending(TMDb): _urls = {"trending": "/trending/%s/%s"} - @cached(maxsize=1, ttl=43200) + @cached(maxsize=1024, ttl=43200) def _trending(self, media_type="all", time_window="day", page=1): """ Get trending, TTLCache 12 hours