Skip to content

settings/production: Disable per-site caching for authenticated users

Django per-site caching messes up some page rendering for authenticated users when used in combination with gunicorn workers and memcached (authenticated user is not reported as logged in).

So ensure per-site caching is disabled for authenticated users.

Other solution would be to remove django per-site caching as we already have a varnish cache for the webapp so not sure it is really needed.

Test Plan

The rendering issue only occurs when using gunicorn and memcached, not easy to test with pytest.


Migrated from D5251 (view on Phabricator)

Merge request reports