Skip to content
Snippets Groups Projects
Commit 792f16cc authored by Paul Bourke's avatar Paul Bourke
Browse files

Fix horizon to use cache

Horizon was missing SESSION_ENGINE from it's conf which means it was not
making use of memcached.

Change-Id: I450aee05f59e344902f1e92d913f4c1ce9e8dcc6
Closes-Bug: 1630509
parent cc070979
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,8 @@ SECRET_KEY='{{ horizon_secret_key }}'
# },
#}
{% if groups['memcached'] | length > 0 and horizon_backend_database | bool == False %}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
......@@ -169,6 +171,7 @@ CACHES = {
{%- endif %}
}
}
{% endif %}
# Send email to the console by default
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment