I build a Dutch and English website: http://www.localpoint.nl. Traffic to the website is increasing. That is why I am looking at enabling Django caching.
However, it does not seem to work! I tried different backends. The file backend for example does not store any files. I also tried memcached. That seems to be working although I am not able to check the contents of memcached itself. Is that possible? 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. Is there someone who has experience in setting up caching with a Django website that uses internationalization (i18n)? Thanks very much for your help. By the way these are the middleware settings I am using: # CacheMiddleware settings #CACHE_BACKEND = "locmem:///" #CACHE_BACKEND = "file:///var/www/MyDjango-cache/" CACHE_BACKEND = "memcached://127.0.0.1:11211/" CACHE_MIDDLEWARE_KEY_PREFIX = 'localpoint_' CACHE_MIDDLEWARE_SECONDS = 60 * 5 MIDDLEWARE_CLASSES = ( #"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware", "django.middleware.http.ConditionalGetMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.gzip.GZipMiddleware", "django.contrib.csrf.middleware.CsrfMiddleware", #protection agains cross site scripting. "django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.middleware.cache.CacheMiddleware", "django.middleware.locale.LocaleMiddleware", "django.middleware.doc.XViewMiddleware", ) But I also tried this one: # CacheMiddleware settings #CACHE_BACKEND = "locmem:///" #CACHE_BACKEND = "file:///var/www/MyDjango-cache/" CACHE_BACKEND = "memcached://127.0.0.1:11211/" CACHE_MIDDLEWARE_KEY_PREFIX = 'localpoint_' CACHE_MIDDLEWARE_SECONDS = 60 * 5 MIDDLEWARE_CLASSES = ( #"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware", "django.middleware.http.ConditionalGetMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.gzip.GZipMiddleware", "django.contrib.csrf.middleware.CsrfMiddleware", #protection agains cross site scripting. "django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.middleware.locale.LocaleMiddleware", "django.middleware.doc.XViewMiddleware", "django.middleware.cache.CacheMiddleware", ) Same result. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---