wip: adds cache rich functionality
This commit is contained in:
@@ -3,11 +3,15 @@
|
||||
{% block h2 %}Preferences{% endblock %}
|
||||
|
||||
{% block action_buttons %}
|
||||
<button
|
||||
class="px-1.5 py-1 my-2 text-white text-sm bg-blue-950 hover:bg-black/80 border-2 border-blue-500/90 rounded-md inline-block"
|
||||
>
|
||||
Clear Cache
|
||||
</button>
|
||||
<div {{ stimulus_controller('clear_cache') }}>
|
||||
<twig:Modal heading="Hold on a sec!" button_text="Clear Cache" cancel_text="Nope" submit_text="Yep" show_cancel show_submit
|
||||
button_class="px-1.5 py-1 my-2 text-white text-sm bg-blue-950 hover:bg-black/80 border-2 border-blue-500/90 rounded-md inline-block"
|
||||
submit_action="{{ stimulus_action('clear_cache', 'clearAll', 'click') }}"
|
||||
>
|
||||
This will clear the TMDB, Torrentio, and application cache. Clearing the cache is safe, but may lead to
|
||||
slower page loads and rate limits by Torrentio. Would you like to proceed?
|
||||
</twig:Modal>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
Reference in New Issue
Block a user