Apply ephemeral cache for some memoize tasks recently merged

This commit is contained in:
Matthew Jones
2017-09-18 12:31:33 -04:00
parent 64415872a0
commit 87b58e6bc2
2 changed files with 6 additions and 0 deletions

View File

@@ -108,4 +108,7 @@ CACHES = {
'LOCATION': '{}:{}'.format(os.getenv("MEMCACHED_HOST", None), 'LOCATION': '{}:{}'.format(os.getenv("MEMCACHED_HOST", None),
os.getenv("MEMCACHED_PORT", "11211")) os.getenv("MEMCACHED_PORT", "11211"))
}, },
'ephemeral': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
} }

View File

@@ -89,4 +89,7 @@ data:
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '{}:{}'.format("localhost", "11211") 'LOCATION': '{}:{}'.format("localhost", "11211")
}, },
'ephemeral': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
} }