forked from rDrama/rDrama
expire cached pfps after 1hr (for stuff like chud pfp and whatnot)
parent
9078ddbc34
commit
53b31e1ea7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue