Cache index for 60 seconds

This commit is contained in:
George Lacey 2021-05-18 22:17:47 +01:00
parent b7054d5b15
commit 5759839415
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
window.addEventListener("DOMContentLoaded", function () { window.addEventListener("DOMContentLoaded", function () {
const repoDict = JSON.parse(document.getElementById('hour_list').textContent); // const repoDict = JSON.parse(document.getElementById('hour_list').textContent);
// set_daily_graph(repoDict) // set_daily_graph(repoDict)
}, false); }, false);

View File

@ -4,7 +4,7 @@ from django.views.decorators.cache import cache_page
from . import views from . import views
urlpatterns = [ urlpatterns = [
path('', cache_page(300)(views.index), name='index'), path('', cache_page(60)(views.index), name='index'),
path('post/repo', views.post_repo, name='repo'), path('post/repo', views.post_repo, name='repo'),
path('post/archive', views.post_archive, name='archive'), path('post/archive', views.post_archive, name='archive'),
path('post/error', views.post_error, name='error'), path('post/error', views.post_error, name='error'),