mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Cache landing page
This commit is contained in:
parent
7df99afdc7
commit
b0fef8f0e3
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
""" 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
|
||||
|
@ -31,6 +33,7 @@ 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 = {
|
||||
|
|
Loading…
Reference in a new issue