#13283: CACHE_MIDDLEWARE_ANONYMOUS_ONLY kills anonymous caching efficiency -----------------------------------+---------------------------------------- Reporter: carljm | Owner: nobody Status: new | Milestone: Component: Cache system | Version: SVN Resolution: | Keywords: session accessed vary cookie Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | -----------------------------------+---------------------------------------- Comment (by natrius):
This seems like a problem that should be ameliorated somehow for Django 1.3. The setting seems to have been added before `CacheMiddleware` respected `Vary` headers in order to prevent user-specific pages from being cached and shown to other users. That is no longer possible, so the setting should be removed. At the minimum, the setting should be marked as deprecated in the documentation instead of touted as a useful feature so people don't keep using a broken, unnecessary setting. If we want users to be able to save memory by not caching user-specific pages, I have a patch to do that with a separate setting, but `CACHE_MIDDLEWARE_ANONYMOUS_ONLY` must die soon. My patch provides a reasonable transition behavior for existing users of the setting before it goes away completely. -- Ticket URL: <http://code.djangoproject.com/ticket/13283#comment:18> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.