feat: clear cache on user deactivation

This commit is contained in:
Vlad Stan
2026-02-02 12:34:47 +02:00
parent fadad38c99
commit e951d02c3d
4 changed files with 33 additions and 9 deletions
+1
View File
@@ -261,6 +261,7 @@ async def check_account_id_exists(
account_id,
expiry=settings.auth_authentication_cache_minutes * 60,
)
cache.set(f"auth:user:cache_key:{sha256s(account.id)}", cache_key)
return account_id