Skip to content

Commit 69d5246

Browse files
committed
Cache menus by login. Commit ready for merge.
- Legacy-Id: 19831
1 parent 5bf0638 commit 69d5246

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/templates/base/menu.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{# Copyright The IETF Trust 2015-2019, All Rights Reserved #}{% load origin %}{% origin %}
2-
{% load ietf_filters managed_groups wg_menu active_groups_menu group_filters %}
2+
{% load ietf_filters managed_groups wg_menu active_groups_menu group_filters cache %}
33

4+
{% cache 600 menus request.user.username %}{% got_touched %}
45
{% if flavor != "top" %}
56
{% include "base/menu_user.html" %}
67
{% endif %}
@@ -163,4 +164,5 @@
163164

164165
{% if flavor == "top" %}
165166
{% include "base/menu_user.html" %}
166-
{% endif %}
167+
{% endif %}
168+
{% endcache %}

0 commit comments

Comments
 (0)