Skip to content

Commit 729b212

Browse files
committed
Merged in [19831] from rjsparks@nostrum.com:
Cache menus by login. - Legacy-Id: 19844 Note: SVN reference [19831] has been migrated to Git commit 69d5246
2 parents eb18519 + 69d5246 commit 729b212

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)