Integrate memcached into setup playbook

This commit is contained in:
Matthew Jones 2016-09-01 11:41:20 -04:00
parent f0b7622672
commit f3b7fe18ce
2 changed files with 3 additions and 18 deletions

View File

@ -351,7 +351,7 @@ CELERYBEAT_SCHEDULE = {
},
}
# Use Redis as cache backend (except when testing).
# Django Caching Configuration
if is_testing():
CACHES = {
'default': {
@ -361,8 +361,8 @@ if is_testing():
else:
CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': BROKER_URL,
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'memcached:11211',
},
}

View File

@ -48,21 +48,6 @@ if is_testing(sys.argv):
MONGO_DB = 'system_tracking_test'
# Django Caching Configuration
if is_testing():
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
}
else:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'memcached:11211',
},
}
# Celery AMQP configuration.
BROKER_URL = 'amqp://guest:guest@rabbitmq//'