From 026cf1a3110eee6dd4f574404998c13c87dbc7ac Mon Sep 17 00:00:00 2001 From: George Lacey Date: Wed, 19 May 2021 21:03:53 +0100 Subject: [PATCH] Cache daily repo view for an hour --- borgweb/borg/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgweb/borg/urls.py b/borgweb/borg/urls.py index 9fd6ccf..485fafd 100644 --- a/borgweb/borg/urls.py +++ b/borgweb/borg/urls.py @@ -5,7 +5,7 @@ from . import views urlpatterns = [ 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/', views.repo, name='repo'), path('post/repo', views.post_repo, name='post repo'), path('post/archive', views.post_archive, name='post archive'),