On 7/7/07, patrick k. <[EMAIL PROTECTED]> wrote:
> I donĀ“t understand why the page_cache is keyed by the vary header and
> the view_cache is not. is there a reason for this?

You mean cache_page rather than page_cache, but what is view_cache?

I think I may have spotted the problem: the cache_page decorator runs
before the Vary header gets patched for the session access.

As a test, just before you return your HttpResponse, try adding this
to one of your auth views, and try to use the cache_page decorator:

from django.utils.cache import patch_vary_headers
patch_vary_headers(response, ('Cookie',))

(Maye sure to dump your cache first, too.)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to