diff --git a/bookwyrm/templates/about/about.html b/bookwyrm/templates/about/about.html index c446e0cf2..6705793d5 100644 --- a/bookwyrm/templates/about/about.html +++ b/bookwyrm/templates/about/about.html @@ -10,8 +10,9 @@ {% endblock %} {% block about_content %} +{% get_current_language as LANGUAGE_CODE %} {# seven day cache #} -{% cache 604800 about_page_superlatives %} +{% cache 604800 about_page_superlatives LANGUAGE_CODE %} {% get_book_superlatives as superlatives %}
diff --git a/bookwyrm/templates/landing/landing.html b/bookwyrm/templates/landing/landing.html index e4807b005..465584cab 100644 --- a/bookwyrm/templates/landing/landing.html +++ b/bookwyrm/templates/landing/landing.html @@ -10,7 +10,8 @@ {% get_current_language as LANGUAGE_CODE %} -{% cache 60 * 60 LANGUAGE_CODE %} +{# 1 hour cache #} +{% cache 3600 landing LANGUAGE_CODE %} {% get_landing_books as books %}
diff --git a/bookwyrm/templates/snippets/book_titleby.html b/bookwyrm/templates/snippets/book_titleby.html index 3182dc996..dc42bf273 100644 --- a/bookwyrm/templates/snippets/book_titleby.html +++ b/bookwyrm/templates/snippets/book_titleby.html @@ -4,7 +4,7 @@ {% spaceless %} {% get_current_language as LANGUAGE_CODE %} -{# 6 month cache #} +{# 10 second cache #} {% cache 10 titleby LANGUAGE_CODE book.id %} {% if book.authors.exists %}