mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Tweak URL check cache
This commit is contained in:
parent
c160b75851
commit
883f87b6e4
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ def is_url_valid(url: str) -> bool:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@functools.lru_cache(maxsize=512)
|
||||||
def check_url(url: str) -> None:
|
def check_url(url: str) -> None:
|
||||||
logger.debug(f"check_url {url=}")
|
logger.debug(f"check_url {url=}")
|
||||||
if not is_url_valid(url):
|
if not is_url_valid(url):
|
||||||
|
|
Loading…
Reference in a new issue