Skip to content

Commit

Permalink
Cache menus by login. Commit ready for merge.
Browse files Browse the repository at this point in the history
 - Legacy-Id: 19831
  • Loading branch information
rjsparks committed Jan 11, 2022
1 parent 5bf0638 commit 69d5246
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ietf/templates/base/menu.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{# Copyright The IETF Trust 2015-2019, All Rights Reserved #}{% load origin %}{% origin %}
{% load ietf_filters managed_groups wg_menu active_groups_menu group_filters %}
{% load ietf_filters managed_groups wg_menu active_groups_menu group_filters cache %}

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

{% if flavor == "top" %}
{% include "base/menu_user.html" %}
{% endif %}
{% endif %}
{% endcache %}

0 comments on commit 69d5246

Please sign in to comment.