From 58e142126242acec05534a18b8bd655b27bbef36 Mon Sep 17 00:00:00 2001 From: Laszlo Zeke Date: Fri, 4 Sep 2020 23:13:07 +0200 Subject: [PATCH] Bump cache sizes again --- TwitchRSS/twitchrss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwitchRSS/twitchrss.py b/TwitchRSS/twitchrss.py index ca5385e..7b2b112 100644 --- a/TwitchRSS/twitchrss.py +++ b/TwitchRSS/twitchrss.py @@ -80,12 +80,12 @@ def get_inner(channel, add_live=True): return rss_data, headers -@cached(cache=TTLCache(maxsize=2000, ttl=USERIDCACHE_LIFETIME)) +@cached(cache=TTLCache(maxsize=3000, ttl=USERIDCACHE_LIFETIME)) def fetch_userid(channel_name): return fetch_json(channel_name, USERID_URL_TEMPLATE) -@cached(cache=TTLCache(maxsize=400, ttl=VODCACHE_LIFETIME)) +@cached(cache=TTLCache(maxsize=500, ttl=VODCACHE_LIFETIME)) def fetch_vods(channel_id): return fetch_json(channel_id, VOD_URL_TEMPLATE)