From 938379b7ba81dc21ac8bd301ae557026f1dc6bd2 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Tue, 18 May 2021 21:16:27 +0100 Subject: [PATCH] Cache index for 5 minutes --- 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 3461d92..74d9f9a 100644 --- a/borgweb/borg/urls.py +++ b/borgweb/borg/urls.py @@ -4,7 +4,7 @@ from django.views.decorators.cache import cache_page from . import views urlpatterns = [ - path('', views.index, name='index'), + path('', cache_page(300)(views.index), name='index'), path('post/repo', views.post_repo, name='repo'), path('post/archive', views.post_archive, name='archive'), path('post/error', views.post_error, name='error'),