From 04d2eba3d9a856bc11eb424dfc369e0ad68c1f5f Mon Sep 17 00:00:00 2001 From: George Lacey Date: Wed, 2 Jun 2021 01:49:55 +0100 Subject: [PATCH] Cache repo page --- 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 804092d..5f4f991 100644 --- a/borgweb/borg/urls.py +++ b/borgweb/borg/urls.py @@ -7,7 +7,7 @@ urlpatterns = [ path('', cache_page(60)(views.index), name='index'), path('repo_daily.json', cache_page(3600)(views.repo_daily_json), name='daily repo json'), path('repo_monthly.json', cache_page(3600 * 12)(views.repo_monthly_json), name='monthly repo json'), - path('repo/', views.repo, name='repo'), + path('repo/', cache_page(60)(views.repo), name='repo'), path('post/repo', views.post_repo, name='post repo'), path('post/archive', views.post_archive, name='post archive'), path('post/error', views.post_error, name='post error'),