Revert "Performance: Cache complete organizer index page, cache subevent list template fragment (#2125)"

This reverts commit ba895270fa.
This commit is contained in:
Raphael Michel
2021-06-14 23:16:19 +02:00
parent eb77f67d28
commit 5801c8602e
6 changed files with 31 additions and 108 deletions

View File

@@ -2,7 +2,6 @@
{% load i18n %}
{% load l10n %}
{% load eventurl %}
{% load cache %}
{% load money %}
{% load thumb %}
{% load eventsignal %}
@@ -74,15 +73,13 @@
</div>
<div class="panel-body">
<div>
{% cache 15 subevent_lits subevent_list_cache_key %}
{% if subevent_list.list_type == "calendar" %}
{% include "pretixpresale/event/fragment_subevent_calendar.html" %}
{% elif subevent_list.list_type == "week" %}
{% include "pretixpresale/event/fragment_subevent_calendar_week.html" %}
{% else %}
{% include "pretixpresale/event/fragment_subevent_list.html" %}
{% endif %}
{% endcache %}
{% if list_type == "calendar" %}
{% include "pretixpresale/event/fragment_subevent_calendar.html" %}
{% elif list_type == "week" %}
{% include "pretixpresale/event/fragment_subevent_calendar_week.html" %}
{% else %}
{% include "pretixpresale/event/fragment_subevent_list.html" %}
{% endif %}
</div>
</div>
</div>