Tweak URL check cache

This commit is contained in:
Thomas Sileo 2022-07-15 20:55:37 +02:00
parent c160b75851
commit 883f87b6e4

View file

@ -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):