From c24d1b6b84ab67803f0e6f17554ebe447adeedc3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 16 Dec 2020 12:14:34 +0100 Subject: [PATCH] outposts: fix incorrect timeout for state cache --- authentik/outposts/tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/authentik/outposts/tasks.py b/authentik/outposts/tasks.py index b7f905108..a9195a9de 100644 --- a/authentik/outposts/tasks.py +++ b/authentik/outposts/tasks.py @@ -42,9 +42,8 @@ def outpost_service_connection_state(connection_pk: Any): .select_subclasses() .first() ) - cache.delete(f"outpost_service_connection_{connection.pk.hex}") state = connection.fetch_state() - cache.set(connection.state_key, state, timeout=0) + cache.set(connection.state_key, state, timeout=None) @CELERY_APP.task(bind=True, base=MonitoredTask)