Skip to content

Commit

Permalink
Change cache key for My services and add extra markers (#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
ar4s authored and xliiv committed Oct 6, 2016
1 parent 6acec22 commit 4e844ef
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,7 +1,9 @@
{% load cache i18n dashboard_tags %}

{% if services %}
{% cache 60 my_services request.user %}
<!-- user cache key: {{ request.user.permissions_hash }} -->
{% cache 60 my_services request.user.permissions_hash %}
<!-- cache -->
<div class="services module row">
<table class="full">
<h2>{% trans "My services" %}</h2>
Expand Down Expand Up @@ -40,5 +42,6 @@ <h2>{% trans "My services" %}</h2>
</tbody>
</table>
</div>
<!-- end cache -->
{% endcache %}
{% endif %}

0 comments on commit 4e844ef

Please sign in to comment.