fbd4e92e9f
Full rewrite: swap out the v1 framework (src/, controllers/, views/, twig/, sass/, skeleton/) for the working v2 codebase from phpproject (App/, novaconium/, public/).
27 lines
934 B
Twig
27 lines
934 B
Twig
{% extends layout %}
|
|
|
|
{% import '_layout/icons.twig' as icons %}
|
|
|
|
{% block title %}Clear cache{% endblock %}
|
|
|
|
{% block description %}Clear the static page cache.{% endblock %}
|
|
|
|
{% block robots %}noindex, nofollow{% endblock %}
|
|
|
|
{% block content %}
|
|
<article>
|
|
<h1 class="icon-heading">{{ icons.trash() }}Clear cache</h1>
|
|
<p>Deletes every pre-rendered page under <code>public/cache/</code>. Sidecar-less pages re-render (and re-cache) on their next request.</p>
|
|
{% if cleared %}
|
|
<p><strong>Cache cleared.</strong></p>
|
|
{% endif %}
|
|
{% if securityError %}
|
|
<p><strong>Your session expired before submitting — please try again.</strong></p>
|
|
{% endif %}
|
|
<form method="post">
|
|
<input type="hidden" name="{{ csrfField }}" value="{{ csrfToken }}">
|
|
<button type="submit">Clear cache</button>
|
|
</form>
|
|
</article>
|
|
{% endblock %}
|