Remove caches from base template

These components are pretty efficient, and it makes content editing more
annoying.
This commit is contained in:
Jake Howard 2022-09-05 13:58:36 +01:00
parent c40987c14f
commit 0a136496f4
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 4 additions and 11 deletions

View File

@ -5,7 +5,6 @@ exclude = '''
navbar\.html
| referrallink_snippet_link\.html
| onlineaccount_snippet_link\.html
| base\.html
| 500\.html
)
'''

View File

@ -1,4 +1,4 @@
{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags cache plausible_wagtail favicon_tags sri %}
{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags plausible_wagtail favicon_tags sri %}
<!DOCTYPE html>
<html lang="en-GB">
@ -17,9 +17,7 @@
<meta name="robots" content="noindex" />
{% endif %}
{% cache 3600 "favicon" %}
{% favicon_meta %}
{% endcache %}
{% favicon_meta %}
{% block extra_head %}{% endblock %}
@ -35,9 +33,7 @@
<body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %}
{% cache 3600 "navbar" %}
{% navbar %}
{% endcache %}
{% navbar %}
{% block main %}
<main>
@ -45,9 +41,7 @@
</main>
{% endblock %}
{% cache 3600 "footer" %}
{% footer %}
{% endcache %}
{% footer %}
<script async defer type="text/javascript" src="{% static 'js/base.js' %}" integrity="{% sri_integrity_static 'js/base.js' %}"></script>
<script async defer type="text/javascript" src="{% static 'contrib/htmx/htmx.min.js' %}" integrity="{% sri_integrity_static 'contrib/htmx/htmx.min.js' %}"></script>