diff --git a/bookwyrm/templates/landing/landing.html b/bookwyrm/templates/landing/landing.html index d13cd582a..759e8c619 100644 --- a/bookwyrm/templates/landing/landing.html +++ b/bookwyrm/templates/landing/landing.html @@ -1,11 +1,13 @@ {% extends 'landing/layout.html' %} {% load i18n %} +{% load cache %} {% block panel %}

{% trans "Recent Books" %}

+{% cache 60 * 60 %}
@@ -46,5 +48,5 @@
- +{% endcache %} {% endblock %} diff --git a/bookwyrm/views/landing/landing.py b/bookwyrm/views/landing/landing.py index 74b5ee513..c8bba0664 100644 --- a/bookwyrm/views/landing/landing.py +++ b/bookwyrm/views/landing/landing.py @@ -1,8 +1,6 @@ """ non-interactive pages """ from django.template.response import TemplateResponse from django.views import View -from django.utils.decorators import method_decorator -from django.views.decorators.cache import cache_page from bookwyrm import forms from bookwyrm.views import helpers @@ -33,7 +31,6 @@ class Home(View): class Landing(View): """preview of recently reviewed books""" - @method_decorator(cache_page(60 * 60), name="dispatch") def get(self, request): """tiled book activity page""" data = {