Skip to content

Commit f267991

Browse files
authored
Cache RSS feed views for 30 minutes (OSMCha#670)
1 parent 8262c7c commit f267991

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osmchadjango/supervise/urls.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from __future__ import absolute_import, unicode_literals
33

44
from django.urls import re_path
5+
from django.views.decorators.cache import cache_page
56

67
from . import views
78

@@ -25,7 +26,7 @@
2526
),
2627
re_path(
2728
r'^aoi/(?P<pk>[0-9a-f-]+)/changesets/feed/$',
28-
view=views.AOIListChangesetsFeedView(),
29+
view=cache_page(60 * 30)(views.AOIListChangesetsFeedView()),
2930
name='aoi-changesets-feed'
3031
),
3132
re_path(

0 commit comments

Comments
 (0)