Hide option to clear redis cache

Don't make it tempting to do this
This commit is contained in:
Mouse Reeve 2024-08-23 19:35:12 -07:00
parent 6c252c1311
commit ace0bf46d6

View file

@ -68,8 +68,15 @@
</section>
<section class="block content">
<h2>{% trans "Clear Django cache" %}</h2>
<div class="box">
<h2>{% trans "Advanced" %}</h2>
<details class="details-panel box">
<summary>
<span class="title is-5" role="headind" aria-level="3">
{% trans "Clear Django Cache" %}
</span>
<span class="details-close icon icon-x" aria-hidden="true"></span>
</summary>
<p>
{% blocktrans trimmed %}
This is <strong>NOT recommended</strong> and should only be used if something has gone very wrong with your cache. All sessions will be cleared and users will be logged out of their accounts.
@ -86,10 +93,12 @@
<form name="erase-keys" method="POST" action="{% url 'settings-redis' %}">
{% csrf_token %}
<input type="hidden" name="erase_cache" value="True">
<button type="submit" class="button is-danger">{% trans "Erase cache" %}</button>
<div class="control">
<button type="submit" class="button is-danger">{% trans "Erase cache" %}</button>
</div>
</form>
{% endif %}
</div>
</details>
</section>
{% else %}