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:
parent
5ea922a551
commit
3e25b04e4a
3 changed files with 2 additions and 18 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue