5 min cache for auth checks to reduce spam.

This commit is contained in:
2026-08-13 07:23:22 +00:00
parent b5f4f67813
commit 321a86acf8
+1 -1
View File
@@ -226,7 +226,7 @@ def hydrate_request_auth_context(request, *, source: str) -> None:
_AUTH_REALM = "cista" _AUTH_REALM = "cista"
_AUTH_CACHE_TTL = 10 _AUTH_CACHE_TTL = 300
_auth_cache: dict[str, tuple[float, config.User]] = {} _auth_cache: dict[str, tuple[float, config.User]] = {}
_WINDOWS_UA_HINTS = ( _WINDOWS_UA_HINTS = (
"windows", "windows",