Cache repo page

This commit is contained in:
George Lacey 2021-06-02 01:49:55 +01:00
parent 10a141819f
commit 04d2eba3d9

View File

@ -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/<str:repo_label>', views.repo, name='repo'),
path('repo/<str:repo_label>', 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'),