core: increase application cache duration
# Conflicts: # authentik/core/api/applications.py
This commit is contained in:
parent
08e7ef3c1e
commit
6e69edf1af
|
@ -86,7 +86,11 @@ class ApplicationViewSet(ModelViewSet):
|
||||||
engine.build()
|
engine.build()
|
||||||
if engine.passing:
|
if engine.passing:
|
||||||
allowed_applications.append(application)
|
allowed_applications.append(application)
|
||||||
cache.set(user_app_cache_key(self.request.user.pk), allowed_applications, timeout=86400)
|
cache.set(
|
||||||
|
user_app_cache_key(self.request.user.pk),
|
||||||
|
allowed_applications,
|
||||||
|
timeout=86400,
|
||||||
|
)
|
||||||
serializer = self.get_serializer(allowed_applications, many=True)
|
serializer = self.get_serializer(allowed_applications, many=True)
|
||||||
return self.get_paginated_response(serializer.data)
|
return self.get_paginated_response(serializer.data)
|
||||||
|
|
||||||
|
|
Reference in New Issue