mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-02-22 06:57:39 +01:00
Tweak URL check cache
This commit is contained in:
parent
c160b75851
commit
883f87b6e4
@ -65,6 +65,7 @@ def is_url_valid(url: str) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
@functools.lru_cache(maxsize=512)
|
||||
def check_url(url: str) -> None:
|
||||
logger.debug(f"check_url {url=}")
|
||||
if not is_url_valid(url):
|
||||
|
Loading…
x
Reference in New Issue
Block a user