{% extends "wagtailadmin/base.html" %} {% load i18n wagtailcache_tags %} {% block titletag %}{% trans "Cache" %}{% endblock %} {% block content %} {% trans "Cache" as title_str %} {% include "wagtailadmin/shared/header.html" with title=title_str icon=cache_icon %}

{% trans "Status" %}

{% if 'WAGTAIL_CACHE'|get_wagtailcache_setting %}

{% trans "ENABLED" %}

{% trans "Cached pages are automatically refreshed every" %} {% cache_timeout %}.
{% trans "To modify this, change the TIMEOUT value of the cache backend in the project settings." %}

{% trans "Clear cache" %}


{% trans "Contents" %}

{% trans "Number of URLs in the cache:" %} {{ keyring|length }}

{% trans "Below is each URL and the cache key for each response of that URL that is currently in the cache." %} {% trans "Note that 301/302 redirects and 404s may also be cached." %}

{% else %}

{% trans "DISABLED" %}

{% trans "To enable caching, set WAGTAIL_CACHE = True in the project settings." %}

{% endif %}
{% endblock %}