Use 6 month cache for items that don't really need to expire

This commit is contained in:
Mouse Reeve
2022-01-06 10:27:12 -08:00
parent 0f37e0ad42
commit b3bfaf0586
4 changed files with 9 additions and 4 deletions

View File

@ -3,7 +3,8 @@
{% load cache %}
{% if request.user.is_authenticated %}
{% cache None shelve_button request.user.id book.id %}
{# 6 month cache #}
{% cache 15552000 shelve_button request.user.id book.id %}
{% with book.id|uuid as uuid %}
{% active_shelf book as active_shelf %}