On Thu, Feb 3, 2011 at 12:26 PM, Ivo Brodien <i...@brodien.de> wrote: > Hi! > >> I assume you configured the cache backend to point to memcache, didn't you ? > > yes :) > > in my settings.py I have > > > > CACHES = { > 'default': { > 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', > } > } > > > try: > from local_settings import * > except ImportError: > pass > > and in local_settings.py: > > CACHES = { > 'default': { > 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', > 'LOCATION': '127.0.0.1:11211', > } > } > > Which should override the dummycache setting. > > However I just checked using ./manage.py shell: > > from django.core.cache import cache > print cache > <django.core.cache.backends.locmem.CacheClass object at 0x2705dd0> > > In the shell it is using the locmem which I haven’t configured anywhere... > strange! > > Bye > Ivo >
You don't specify what version of django you are using. I suspect you are referring to the trunk/1.3 docs, and using 1.2. In 1.2, the cache is controlled by settings.CACHE_BACKEND, which defaults to locmem if omitted. Cheers Tom -- 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.