Cache index for 60 seconds
This commit is contained in:
parent
b7054d5b15
commit
5759839415
|
@ -1,5 +1,5 @@
|
|||
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)
|
||||
}, false);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ from django.views.decorators.cache import cache_page
|
|||
from . import views
|
||||
|
||||
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/archive', views.post_archive, name='archive'),
|
||||
path('post/error', views.post_error, name='error'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user