mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 04:51:11 +00:00
Hide option to clear redis cache
Don't make it tempting to do this
This commit is contained in:
parent
6c252c1311
commit
ace0bf46d6
1 changed files with 13 additions and 4 deletions
|
@ -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">
|
||||
<div class="control">
|
||||
<button type="submit" class="button is-danger">{% trans "Erase cache" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</details>
|
||||
</section>
|
||||
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in a new issue