use memcached unix domain socket rather than tcp

This commit is contained in:
chris meyers
2020-03-31 15:57:50 -04:00
parent 99511de728
commit 37a715c680
4 changed files with 19 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ data:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '{}:{}'.format("localhost", "11211")
'LOCATION': 'unix:/var/run/memcached/memcached.sock'
},
'ephemeral': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',