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:
parent
d37aee7ae2
commit
0bf86be4ac
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue