Time out OpenAPI cache; documentation live queries get stale sometimes
@@ -67,8 +67,8 @@ urlpatterns = [
re_path('healthcheck', HealthCheck.as_view()),
re_path(r'^swagger(?P<format>\.json|\.yaml)$',
schema_view.without_ui(cache_timeout=None), name='schema-json'),
- re_path(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=None),
+ re_path(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=15),
name='schema-swagger-ui'),
- re_path(r'^redoc/$', schema_view.with_ui('redoc', cache_timeout=None),
+ re_path(r'^redoc/$', schema_view.with_ui('redoc', cache_timeout=15),
name='schema-redoc'),
]
