forked from forks/microblog.pub
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
|
||||
|
||||
|
||||
@functools.lru_cache(maxsize=512)
|
||||
def check_url(url: str) -> None:
|
||||
logger.debug(f"check_url {url=}")
|
||||
if not is_url_valid(url):
|
||||
|
|
Loading…
Reference in a new issue