Use a key function that is safe for use w/ memcache

This commit is contained in:
Calen Pennington
2012-05-25 09:30:04 -04:00
parent f632db0e9d
commit 88ff84dd2e
5 changed files with 29 additions and 3 deletions

View File

@@ -30,12 +30,14 @@ CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
'KEY_FUNCTION': 'util.memcache.safe_key',
},
'general': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
'KEY_PREFIX' : 'general',
'VERSION' : 5,
'KEY_FUNCTION': 'util.memcache.safe_key',
}
}