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 navbar\.html
| referrallink_snippet_link\.html | referrallink_snippet_link\.html
| onlineaccount_snippet_link\.html | onlineaccount_snippet_link\.html
| base\.html
| 500\.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> <!DOCTYPE html>
<html lang="en-GB"> <html lang="en-GB">
@ -17,9 +17,7 @@
<meta name="robots" content="noindex" /> <meta name="robots" content="noindex" />
{% endif %} {% endif %}
{% cache 3600 "favicon" %} {% favicon_meta %}
{% favicon_meta %}
{% endcache %}
{% block extra_head %}{% endblock %} {% block extra_head %}{% endblock %}
@ -35,9 +33,7 @@
<body class="{% block body_class %}{% endblock %}"> <body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %} {% wagtailuserbar %}
{% cache 3600 "navbar" %} {% navbar %}
{% navbar %}
{% endcache %}
{% block main %} {% block main %}
<main> <main>
@ -45,9 +41,7 @@
</main> </main>
{% endblock %} {% endblock %}
{% cache 3600 "footer" %} {% footer %}
{% footer %}
{% endcache %}
<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 '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> <script async defer type="text/javascript" src="{% static 'contrib/htmx/htmx.min.js' %}" integrity="{% sri_integrity_static 'contrib/htmx/htmx.min.js' %}"></script>