From 08e7ef3c1ecbd33c9f75ccf9fdece308a3c67b20 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 17 Jan 2021 19:04:42 +0100 Subject: [PATCH] core: increase application cache duration --- authentik/core/api/applications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/core/api/applications.py b/authentik/core/api/applications.py index 621edf7a4..cd13d4fa8 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -86,7 +86,7 @@ class ApplicationViewSet(ModelViewSet): engine.build() if engine.passing: allowed_applications.append(application) - cache.set(user_app_cache_key(self.request.user.pk), allowed_applications) + cache.set(user_app_cache_key(self.request.user.pk), allowed_applications, timeout=86400) serializer = self.get_serializer(allowed_applications, many=True) return self.get_paginated_response(serializer.data)