From 883f87b6e4215e017633a188f0c227e8fcae84dc Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 15 Jul 2022 20:55:37 +0200 Subject: [PATCH] Tweak URL check cache --- app/utils/url.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/utils/url.py b/app/utils/url.py index 352fc59..8e03af9 100644 --- a/app/utils/url.py +++ b/app/utils/url.py @@ -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):