greetings, we are using django trunk, updated from time to time. we were using revision 13303, and then wanted to update to the current revision (15776 at the time). upon updating to 15776, the caching behaviour of our apps changed. we are using CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True and authenticated users will need different content served up at the template level for any given view. for example, they will see icons for editing content, a "dashboard" bar for administrative purposes, etc. anonymous visitors will see the same content, without all of the administrative features.
at 13303, this was not a problem. at 15776, it appears as though the CACHE_MIDDLEWARE_ANONYMOUS_ONLY flag is not working properly. an anonymous user will go to a view, that page will be cached, and then an authenticated user will visit the same page and see the "anonymous" version. and vice versa, which is a problem since anonymous users will then see a page with administrative content. by using django authority, we prevent any anonymous users from doing anything administrative, but it's still a problem from a UI perspective. NOTE: we are not using the cache middleware. we are using cache_page decorator for our views. should we be using the middleware in conjunction with cache_page? basically, with CACHE_MIDDLEWARE_ANONYMOUS_ONLY set to True, authenticated users should be served up content dynamically, built at request time. anonymous users should see cached content, if available, and if not, the page is built dynamically at request time, and then cached for subsequent anonymous requests. i am aware of ticket #15260 http://code.djangoproject.com/ticket/15260 and it seems to have been closed, but we are still experiencing issues with caching. any thoughts? thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

