diff --git a/src/agenda_culturel/settings/base.py b/src/agenda_culturel/settings/base.py index 8fdd6d4..e238b9f 100644 --- a/src/agenda_culturel/settings/base.py +++ b/src/agenda_culturel/settings/base.py @@ -250,6 +250,7 @@ LOCATION_FIELD = { # stop robots ROBOTS_USE_SITEMAP = False +ROBOTS_SITE_BY_REQUEST = 'cached-sitemap' # debug if DEBUG: diff --git a/src/agenda_culturel/urls.py b/src/agenda_culturel/urls.py index 7c48397..69e7a03 100644 --- a/src/agenda_culturel/urls.py +++ b/src/agenda_culturel/urls.py @@ -206,7 +206,7 @@ urlpatterns = [ "sitemap.xml", cache_page(86400)(sitemap), {"sitemaps": sitemaps}, - name="django.contrib.sitemaps.views.sitemap", + name="cached-sitemap", ), path("cache/clear", clear_cache, name="clear_cache"),