expire cached pfps after 1hr (for stuff like chud pfp and whatnot)

pull/135/head
Aevann 2023-02-27 03:25:43 +02:00
parent 9078ddbc34
commit 53b31e1ea7
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ def get_sub_by_name(sub:str, v:Optional[User]=None, graceful=False) -> Optional[
else: abort(404)
return sub
@cache.memoize()
@cache.memoize(timeout=3600)
def get_profile_picture(identifier:Union[int, str]) -> str:
if isinstance(identifier, int):
x = get_account(identifier, graceful=True)