Files
novaconium/novaconium/pages/admin/clear-cache/index.twig
T
code fbd4e92e9f Replace v1 with v2 codebase
Full rewrite: swap out the v1 framework (src/, controllers/, views/,
twig/, sass/, skeleton/) for the working v2 codebase from phpproject
(App/, novaconium/, public/).
2026-07-14 01:58:25 +00:00

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 %}