On 12/23/06, Beegee <[EMAIL PROTECTED]> wrote:
But, whenever I switch between the two languages with caching enabled the results are unpredictable. I get a Dutch page when I should get an English one and vice versa.
The cache middleware creates it's keys based on the initial response's vary header. You'll need to use vary_on_headers, presumably including Content-Language. http://www.djangoproject.com/documentation/cache/#using-vary-headers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---