On 7/6/07, patrickk <[EMAIL PROTECTED]> wrote:
>
> when having a header where the username and a logout-button is
> displayed, how do you cache this page/view?

There's a CACHE_MIDDLEWARE_ANONYMOUS_ONLY setting if you want to only
do anonymous caching.

But I think you must have your cache middleware in the wrong order if
you're seeing this problem.

page_cache and the cache middleware both are keyed by the Vary header,
and the Vary header will contain 'Cookie' if you've accessed the
session object-- which you must have done if you have the request.user
in your template.

Please post your MIDDLEWARE_CLASSES tuple.

> is this (using the low-level cache) the best way doing this?
>

I'm not convinced you need it.

--~--~---------~--~----~------------~-------~--~----~
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