Cache daily repo view for an hour

This commit is contained in:
George Lacey 2021-05-19 21:03:53 +01:00
parent 2705641d0d
commit 026cf1a311

View File

@ -5,7 +5,7 @@ from . import views
urlpatterns = [ urlpatterns = [
path('', cache_page(60)(views.index), name='index'), path('', cache_page(60)(views.index), name='index'),
path('repo_daily.json', views.repo_daily_json, name='repo json'), path('repo_daily.json', cache_page(3600)(views.repo_daily_json), name='repo json'),
path('repo/<str:repo_label>', views.repo, name='repo'), path('repo/<str:repo_label>', views.repo, name='repo'),
path('post/repo', views.post_repo, name='post repo'), path('post/repo', views.post_repo, name='post repo'),
path('post/archive', views.post_archive, name='post archive'), path('post/archive', views.post_archive, name='post archive'),