Skip to content

Commit b51329e

Browse files
committed
news: cache the whole /news/ page
This page is requested often by TT-RS, slackbot and others, cache it.
1 parent 87c6325 commit b51329e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

news/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
urlpatterns = [
17-
path('', NewsListView.as_view(), name='news-list'),
17+
path('', cache_user_page(317)(NewsListView.as_view()), name='news-list'),
1818

1919
path('preview/', preview),
2020
# old news URLs, permanent redirect view so we don't break all links

0 commit comments

Comments
 (0)