From 5af9e8c05d7647c4e9e2c6efbfb9986e5d147545 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 30 Jan 2021 18:03:44 +0100 Subject: [PATCH] core: improve application caching --- 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 75b5b85c9..76cc432b9 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -91,7 +91,7 @@ class ApplicationViewSet(ModelViewSet): queryset = self._filter_queryset_for_list(self.get_queryset()) self.paginate_queryset(queryset) - should_cache = "search" not in request.GET + should_cache = request.GET.get("search", "") == "" allowed_applications = [] if not should_cache: