Cache template snipped for shelve buttons
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
{% load bookwyrm_tags %}
|
||||
{% load utilities %}
|
||||
{% load cache %}
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
{% cache 900 shelve_button request.user.id book.id %}
|
||||
|
||||
{% with book.id|uuid as uuid %}
|
||||
{% active_shelf book as active_shelf %}
|
||||
@ -32,4 +34,5 @@
|
||||
{% include 'snippets/reading_modals/progress_update_modal.html' with book=active_shelf.book id=modal_id readthrough=readthrough class="" %}
|
||||
|
||||
{% endwith %}
|
||||
{% endcache %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user