Skip to content

Commit

Permalink
#124 re-add feed cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Mar 23, 2024
1 parent 38f28a6 commit 35065f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cast/urls.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,17 +15,17 @@
# Feeds
path(
"<slug:slug>/feed/rss.xml",
view=feeds.LatestEntriesFeed(),
view=cache_page(5 * 60)(feeds.LatestEntriesFeed()),
name="latest_entries_feed",
),
path(
"<slug:slug>/feed/podcast/<audio_format>/rss.xml",
view=feeds.RssPodcastFeed(),
view=cache_page(5 * 60)(feeds.RssPodcastFeed()),
name="podcast_feed_rss",
),
path(
"<slug:slug>/feed/podcast/<audio_format>/atom.xml",
view=feeds.AtomPodcastFeed(),
view=cache_page(5 * 60)(feeds.AtomPodcastFeed()),
name="podcast_feed_atom",
),
# Meta views like twitter player cards etc
Expand Down

0 comments on commit 35065f9

Please sign in to comment.