Skip to content

Commit

Permalink
releng: cache the torrent urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Jul 29, 2024
1 parent d0b7a80 commit f8995eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions releng/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.conf.urls import include
from django.urls import path, re_path
from django.views.decorators.cache import cache_page

from releng import views

Expand All @@ -8,8 +9,8 @@
releases_patterns = [
path('', ReleaseListView.as_view(), name='releng-release-list'),
path('json/', views.releases_json, name='releng-release-list-json'),
re_path(r'^(?P<version>[-.\w]+)/$', ReleaseDetailView.as_view(), name='releng-release-detail'),
re_path(r'^(?P<version>[-.\w]+)/torrent/$', views.release_torrent, name='releng-release-torrent'),
re_path(r'^(?P<version>[-.\w]+)/$', cache_page(311)(ReleaseDetailView.as_view()), name='releng-release-detail'),
re_path(r'^(?P<version>[-.\w]+)/torrent/$', cache_page(311)(views.release_torrent), name='releng-release-torrent'),
]

netboot_patterns = [
Expand Down

0 comments on commit f8995eb

Please sign in to comment.