twitch, youtube: Lengthen user profile TTL

This commit is contained in:
Mattéo Delabre 2021-09-13 00:22:20 +02:00
parent ed35201a22
commit 20c3d12331
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class APIClient:
else:
return json.loads(http_response.read())
@cached(cache=TTLCache(maxsize=1000, ttl=24 * 60 * 60))
@cached(cache=TTLCache(maxsize=1000, ttl=7 * 24 * 60 * 60))
def user(self, login: str) -> Any:
"""
Get information about a user.

View File

@ -74,7 +74,7 @@ class APIClient:
else:
return json.loads(http_response.read())
@cached(cache=TTLCache(maxsize=1000, ttl=24 * 60 * 60))
@cached(cache=TTLCache(maxsize=1000, ttl=7 * 24 * 60 * 60))
def channel(self, channel_id: str) -> Any:
"""
Get information about a channel.