diff --git a/cast/urls.py b/cast/urls.py index 1a1c6ac4..197d3d19 100644 --- a/cast/urls.py +++ b/cast/urls.py @@ -1,6 +1,7 @@ from typing import Any from django.urls import include, path +from django.views.decorators.cache import cache_page from . import feeds from .views import meta @@ -14,17 +15,17 @@ # Feeds path( "/feed/rss.xml", - view=feeds.LatestEntriesFeed(), + view=cache_page(5 * 60)(feeds.LatestEntriesFeed()), name="latest_entries_feed", ), path( "/feed/podcast//rss.xml", - view=feeds.RssPodcastFeed(), + view=cache_page(5 * 60)(feeds.RssPodcastFeed()), name="podcast_feed_rss", ), path( "/feed/podcast//atom.xml", - view=feeds.AtomPodcastFeed(), + view=cache_page(5 * 60)(feeds.AtomPodcastFeed()), name="podcast_feed_atom", ), # Meta views like twitter player cards etc