news: cache the whole /news/ page

This page is requested often by TT-RS, slackbot and others, cache it.
This commit is contained in:
Jelle van der Waa 2024-07-20 18:43:29 +02:00 committed by Jelle van der Waa
parent 87c6325675
commit b51329eeeb

View File

@ -14,7 +14,7 @@
)
urlpatterns = [
path('', NewsListView.as_view(), name='news-list'),
path('', cache_user_page(317)(NewsListView.as_view()), name='news-list'),
path('preview/', preview),
# old news URLs, permanent redirect view so we don't break all links