Skip to content

Commit

Permalink
news: cache the whole /news/ page
Browse files Browse the repository at this point in the history
This page is requested often by TT-RS, slackbot and others, cache it.
  • Loading branch information
jelly committed Jul 20, 2024
1 parent dd19670 commit 1101323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion news/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1101323

Please sign in to comment.