Hi,

I have been successfully running a multi-language site for a while
now. The users language pref is stored (along with other data) in a
cookie.

Recently, I have been trying to cache some of the more common and
processor intensive views. Since the language code is not in the url,
I can't figure out how to cache pages based on language.

I looked in to the vary_on_header decorator, but I do not see how to
get that to work since the cookies vary on lots of stuff in addition
to language and I doubt I can get my users to change the Accept-
Language attribute in the request header.

Any ideas?

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

Reply via email to