1
0
Fork 0

Cache book_titleby only for 10 seconds

This should be enough caching when renderering pages like the feed, but
not so much that editing a book or author will not show the updated data.
At least without having to do some clever cache busting.
This commit is contained in:
Christof Dorner 2022-12-20 21:48:14 +01:00
parent 5ea922a551
commit 3e25b04e4a
3 changed files with 2 additions and 18 deletions

View file

@ -5,7 +5,7 @@
{% get_current_language as LANGUAGE_CODE %}
{# 6 month cache #}
{% cache 15552000 titleby LANGUAGE_CODE book.id %}
{% cache 10 titleby LANGUAGE_CODE book.id %}
{% if book.authors.exists %}
{% blocktrans trimmed with path=book.local_path title=book|book_title %}