Skip to content

Commit

Permalink
Cache RSS feed views for 30 minutes (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Feb 19, 2024
1 parent 8262c7c commit f267991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osmchadjango/supervise/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import absolute_import, unicode_literals

from django.urls import re_path
from django.views.decorators.cache import cache_page

from . import views

Expand All @@ -25,7 +26,7 @@
),
re_path(
r'^aoi/(?P<pk>[0-9a-f-]+)/changesets/feed/$',
view=views.AOIListChangesetsFeedView(),
view=cache_page(60 * 30)(views.AOIListChangesetsFeedView()),
name='aoi-changesets-feed'
),
re_path(
Expand Down

0 comments on commit f267991

Please sign in to comment.