Bump cache sizes again

This commit is contained in:
Laszlo Zeke 2020-09-04 23:13:07 +02:00
parent f8321aea0d
commit 58e1421262
1 changed files with 2 additions and 2 deletions

View File

@ -80,12 +80,12 @@ def get_inner(channel, add_live=True):
return rss_data, headers 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): def fetch_userid(channel_name):
return fetch_json(channel_name, USERID_URL_TEMPLATE) 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): def fetch_vods(channel_id):
return fetch_json(channel_id, VOD_URL_TEMPLATE) return fetch_json(channel_id, VOD_URL_TEMPLATE)