Commit 8f157133 by Feanil Patel

Merge pull request #1634 from edx/feanil/version_default_cache

Add a default cache version.
parents 712df53e 19aef67c
- Role: edxapp
- A new var was added to make it easy ot invalidate the default
memcache store to make it easier to invalidate sessions. Updating
the edxapp env.json files will result in all users getting logged
out. This is a one time penalty as long as the value of `EDXAPP_DEFAULT_CACHE_VERSION`
is not explicitly changed.
- Role: nginx
- New html templates for server errors added.
Defaults for a ratelimiting static page and server error static page.
......
......@@ -346,6 +346,7 @@ EDXAPP_CELERY_WORKERS:
service_variant: lms
concurrency: 2
EDXAPP_DEFAULT_CACHE_VERSION: "1"
#-------- Everything below this line is internal to the role ------------
......@@ -515,6 +516,12 @@ edxapp_generic_auth_config: &edxapp_generic_auth
THIRD_PARTY_AUTH: $EDXAPP_THIRD_PARTY_AUTH
AWS_STORAGE_BUCKET_NAME: "{{ EDXAPP_AWS_STORAGE_BUCKET_NAME }}"
generic_cache_config: &default_generic_cache
BACKEND: 'django.core.cache.backends.memcached.MemcachedCache'
KEY_FUNCTION: 'util.memcache.safe_key'
KEY_PREFIX: 'default'
LOCATION: $EDXAPP_MEMCACHE
generic_env_config: &edxapp_generic_env
OAUTH_OIDC_ISSUER: "https://{{ EDXAPP_LMS_BASE }}/oauth2"
XBLOCK_FS_STORAGE_BUCKET: $EDXAPP_XBLOCK_FS_STORAGE_BUCKET
......@@ -559,11 +566,10 @@ generic_env_config: &edxapp_generic_env
# repo root for courses
GITHUB_REPO_ROOT: $edxapp_course_data_dir
CACHES:
default: &default_generic_cache
BACKEND: 'django.core.cache.backends.memcached.MemcachedCache'
KEY_FUNCTION: 'util.memcache.safe_key'
default:
<<: *default_generic_cache
KEY_PREFIX: 'default'
LOCATION: $EDXAPP_MEMCACHE
VERSION: "{{ EDXAPP_DEFAULT_CACHE_VERSION }}"
general:
<<: *default_generic_cache
KEY_PREFIX: 'general'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment