Skip to content

Commit

Permalink
Merge pull request #278 from olliewalsh/tlse
Browse files Browse the repository at this point in the history
Enabled memcached session backend and clear cache when service config…
  • Loading branch information
openshift-merge-bot[bot] authored Mar 18, 2024
2 parents 83481f6 + d91f499 commit dd46fc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/horizon/config/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,17 @@
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
'LOCATION': [ {{.memcachedServers}} ]
'LOCATION': [ {{.memcachedServers}} ],
# To drop the cached sessions when config changes
'KEY_PREFIX': os.environ['CONFIG_HASH']
},
}

# If you use ``tox -e runserver`` for developments,then configure
# SESSION_ENGINE to django.contrib.sessions.backends.signed_cookies
# as shown below:
#SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'


# Send email to the console by default
Expand Down

0 comments on commit dd46fc1

Please sign in to comment.