Wednesday, July 13, 2011

session and caching

I have site with with a lay-out depending on a session, set in my
view. I first tried site-wide caching, and this obviously didn't work.
The caching is not session aware, and the lay-out changes almost
randomly.

Therefore I tried my luck with the @vary_on_headers decorator, using
my session variable. This didn't make any change. Looking at the http
request I did found out that the session variable isn't send with the
http header (Confirmed by the docs).

Is there a way to make caching session aware?

One way perhaps is setting a cookie. But what happens with users who
don't use cookies (like search engine spiders)

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate