Skip to content

Commit

Permalink
chore: more caching tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
danjac committed Aug 29, 2024
1 parent 8c0c4cd commit 5909821
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/episodes/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{ block.super }} | Search Episodes
{% endblock title %}
{% block content %}
{% cache 300 search-episodes request.get_full_path %}
<header class="pb-3 mb-3 space-y-3 border-b sm:flex sm:justify-between sm:space-y-0">
<h1 class="flex justify-center items-center text-xl font-bold text-center sm:justify-start lg:text-2xl xl:text-3xl sm:text-start">
Search Episodes
Expand All @@ -16,7 +17,6 @@ <h1 class="flex justify-center items-center text-xl font-bold text-center sm:jus
</ul>
</nav>
</header>
{% cache 300 search-episodes request.get_full_path %}
{% paginate episodes as page_obj %}
{% include "episodes/_episodes.html" %}
{% endcache %}
Expand Down
2 changes: 1 addition & 1 deletion templates/podcasts/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
{{ block.super }}| Categories
{% endblock title %}
{% block content %}
{% cache 300 categories request.get_full_path %}
<header class="justify-between items-center pb-3 mb-3 space-y-3 border-b sm:flex sm:space-y-0">
<h1 class="flex justify-center items-center text-xl font-bold sm:justify-start lg:text-2xl xl:text-3xl">Categories</h1>
<nav class="flex justify-center items-center space-x-3 sm:justify-end">
{% include "_search_form.html" with placeholder="Search: Categories" %}
</nav>
</header>
{% cache 300 categories request.get_full_path %}
{% if categories %}
<ul class="divide-y divide-solid sm:grid sm:grid-cols-2 sm:gap-3 sm:space-y-0 sm:divide-none md:grid-cols-3 sm:grid-flow-cols">
{% for category in categories %}
Expand Down
2 changes: 1 addition & 1 deletion templates/podcasts/discover.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{ block.super }} | Discover
{% endblock title %}
{% block content %}
{% cache 300 promoted-podcasts request.get_full_path %}
<header class="pb-3 mb-3 space-y-3 border-b sm:flex sm:justify-between sm:space-y-0">
<h1 class="flex justify-center items-center text-xl font-bold text-center sm:justify-start lg:text-2xl xl:text-3xl sm:text-start">
Discover
Expand All @@ -25,7 +26,6 @@ <h1 class="flex justify-center items-center text-xl font-bold text-center sm:jus
</ul>
</nav>
</header>
{% cache 300 promoted-podcasts request.get_full_path %}
{% paginate podcasts as page_obj %}
{% include "podcasts/_podcasts.html" %}
{% endcache %}
Expand Down
2 changes: 1 addition & 1 deletion templates/podcasts/search_itunes.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{ block.super }}| Search | iTunes
{% endblock title %}
{% block content %}
{% cache 300 search-itunes request.get_full_path %}
<header class="pb-3 mb-3 space-y-3 border-b sm:flex sm:justify-between sm:space-y-0">
<h1 class="flex justify-center items-center text-xl font-bold text-center sm:justify-start lg:text-2xl xl:text-3xl sm:text-start">
Search iTunes
Expand All @@ -23,7 +24,6 @@ <h1 class="flex justify-center items-center text-xl font-bold text-center sm:jus
</ul>
</nav>
</header>
{% cache 300 search-itunes request.get_full_path %}
<ul class="divide-y divide-solid">
{% for feed in feeds %}
<li class="py-3 first:pt-0 last:pb-0">
Expand Down
2 changes: 1 addition & 1 deletion templates/podcasts/search_podcasts.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{ block.super }} | Search Podcasts
{% endblock title %}
{% block content %}
{% cache 300 search-podcasts request.get_full_path %}
<header class="pb-3 mb-3 space-y-3 border-b sm:flex sm:justify-between sm:space-y-0">
<h1 class="flex justify-center items-center text-xl font-bold text-center sm:justify-start lg:text-2xl xl:text-3xl sm:text-start">
Search Podcasts
Expand All @@ -25,7 +26,6 @@ <h1 class="flex justify-center items-center text-xl font-bold text-center sm:jus
</ul>
</nav>
</header>
{% cache 300 search-podcasts request.get_full_path %}
{% paginate podcasts as page_obj %}
{% include "podcasts/_podcasts.html" %}
{% endcache %}
Expand Down

0 comments on commit 5909821

Please sign in to comment.