First time here? Check out the FAQ!
0

Update memcached link in settings.py

I noticed that in settings.py there is a link to very old Django 1.1 docs: docs DOT djangoproject DOT com/en/1.1/topics/cache/

In those docs the recommended python bindings module is cmemcache, which has been retired since 2009 and no longer recommended.

It would be a good idea to upgrade that to 1.5 to keep people from getting confused.

JStarcher's avatar
71
JStarcher
asked 2013-12-08 12:04:56 -0500
edit flag offensive 0 remove flag close merge delete

Comments

EDIT: Actually, the settings.py example is completely incorrect anyway on newer versions of Django. You'll need to configure it like this in newer versions: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } }

JStarcher's avatar JStarcher (2013-12-08 12:29:13 -0500) edit
add a comment see more comments

1 Answer

0

Yes it's outdated - try pymemcache, it's a pure python implementation and may be easier to work with. It's slower, but you probably won't notice that. Also you might use redis cache.

Evgeny's avatar
13.2k
Evgeny
answered 2013-12-08 12:40:59 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments