From 11013237b67c1a7f16f0f403117ad0fd2f9cf2e1 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sat, 20 Jul 2024 18:43:29 +0200 Subject: [PATCH] news: cache the whole /news/ page This page is requested often by TT-RS, slackbot and others, cache it. --- news/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/urls.py b/news/urls.py index bc48884f..54dbcac2 100644 --- a/news/urls.py +++ b/news/urls.py @@ -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