From 5ef385f0bbf129bc6295ee8473a6715bbdae4a89 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 12 Dec 2021 20:39:04 +0100 Subject: [PATCH] policies: don't always clear application cache on post_save Signed-off-by: Jens Langhammer --- authentik/policies/signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/policies/signals.py b/authentik/policies/signals.py index 7678f293d..2acd98e1f 100644 --- a/authentik/policies/signals.py +++ b/authentik/policies/signals.py @@ -21,5 +21,5 @@ def invalidate_policy_cache(sender, instance, **_): prefix = f"policy_{binding.policy_binding_uuid.hex}_{binding.policy.pk.hex}*" total += cache.delete_pattern(prefix) LOGGER.debug("Invalidating policy cache", policy=instance, keys=total) - # Also delete user application cache - cache.delete_pattern(user_app_cache_key("*")) + # Also delete user application cache + cache.delete_pattern(user_app_cache_key("*"))