Disable varnish middleware on staging

This commit is contained in:
2026-05-12 00:12:44 +02:00
parent 34d351b2f5
commit c4da0045fb

View File

@@ -16,5 +16,12 @@ ALLOWED_HOSTS = [
"mandelstudio.welkombij.mandelblog.com", "mandelstudio.welkombij.mandelblog.com",
] ]
# Staging should reflect live middleware behavior without edge cache interference.
MIDDLEWARE = [
middleware
for middleware in MIDDLEWARE
if middleware != "ocyan.plugin.varnish.middleware.varnishmiddleware"
]
# Force mail to console # Force mail to console
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"