does wagtail-cache cache Django views?
Closed this issue · 3 comments
davidu1975 commented
does wagtail-cache cache Django views?
As we are seeing Django form views being cached in the Wagtail admin/settings/cache page and was not expecting
this?
vsalvino commented
The middleware potentially caches ALL requests/responses of the site. You can set it up to only cache specific views, or ignore specific views. We have detailed documentation on how this works, and how it can be configured: https://docs.coderedcorp.com/wagtail-cache/getting_started/cache_control.html
davidu1975 commented
thanks
does it cache formviews with csrf tokens and if so how can all formviews be excluded from caching
thanks
vsalvino commented
It handles CSRF tokens properly. Please read the documentation which answers your question in detail.