Removes caches that cause CSRF token failures

This commit is contained in:
Mouse Reeve
2022-01-07 09:47:58 -08:00
parent f9d7512ffd
commit abcae9e6c4
3 changed files with 0 additions and 12 deletions

View File

@ -1,10 +1,7 @@
{% load bookwyrm_tags %}
{% load utilities %}
{% load cache %}
{% if request.user.is_authenticated %}
{# 6 month cache #}
{% cache 15552000 shelve_button request.user.id book.id %}
{% with book.id|uuid as uuid %}
{% active_shelf book as active_shelf %}
@ -35,5 +32,4 @@
{% include 'snippets/reading_modals/progress_update_modal.html' with book=active_shelf.book id=modal_id readthrough=readthrough class="" %}
{% endwith %}
{% endcache %}
{% endif %}