core: increase application cache duration

This commit is contained in:
Jens Langhammer 2021-01-17 19:04:42 +01:00
parent cbf246694c
commit 55aab5660b
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,11 @@ 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)