core: improve application caching
This commit is contained in:
parent
7c0c453d9f
commit
5af9e8c05d
|
@ -91,7 +91,7 @@ class ApplicationViewSet(ModelViewSet):
|
||||||
queryset = self._filter_queryset_for_list(self.get_queryset())
|
queryset = self._filter_queryset_for_list(self.get_queryset())
|
||||||
self.paginate_queryset(queryset)
|
self.paginate_queryset(queryset)
|
||||||
|
|
||||||
should_cache = "search" not in request.GET
|
should_cache = request.GET.get("search", "") == ""
|
||||||
|
|
||||||
allowed_applications = []
|
allowed_applications = []
|
||||||
if not should_cache:
|
if not should_cache:
|
||||||
|
|
Reference in New Issue