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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
JStarcher's avatar
71
JStarcher
asked 11 years ago

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 (11 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments