Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add cache to exercise overview

Roland Geider3d501c308fa6
diff --git a/wger/exercises/templates/equipment/overview.html b/wger/exercises/templates/equipment/overview.html
index a21a274a0..4a721e015 100644
--- a/wger/exercises/templates/equipment/overview.html
+++ b/wger/exercises/templates/equipment/overview.html
@@ -33,6 +33,7 @@ $(function() {
Main Content
-->
{% block content %}
+{% cache cache_timeout equipment-overview language.id %}
<div class="accordion" id="equipmentAccordion">
{% for equipment in equipment_list %}
<div class="card">
@@ -82,6 +83,7 @@ $(function() {
</div>
{% endfor %}
</div>
+{% endcache %}
{% endblock %}