Added a max-age to the cache control of /group/groupmenu.ajax, in order to improve local caching.

- Legacy-Id: 9947
This commit is contained in:
Henrik Levkowetz 2015-08-01 14:57:29 +00:00
parent d37aee7ae2
commit 0bf86be4ac

View file

@ -16,7 +16,7 @@ def group_json(request, acronym):
sort_keys=True, indent=2),
content_type="text/json")
@cache_control(public=True)
@cache_control(public=True, max_age=30*60)
@cache_page(30 * 60)
def group_menu_data(request):
groups = Group.objects.filter(state="active", type__in=("wg", "rg"), parent__state="active").order_by("acronym")