Skip to content

Instantly share code, notes, and snippets.

@cmltaWt0
Last active June 20, 2022 08:20
Show Gist options
  • Save cmltaWt0/ba65dd4e89c2d8b8ac4d70a36e0d5f5b to your computer and use it in GitHub Desktop.
Save cmltaWt0/ba65dd4e89c2d8b8ac4d70a36e0d5f5b to your computer and use it in GitHub Desktop.
CACHES conf for openedx
CACHES:
celery:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: celery
LOCATION:
- memcached-2:11211
TIMEOUT: '7200'
configuration:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: configuration
LOCATION:
- memcached-2:11211
course_structure_cache:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: course_structure
LOCATION:
- memcached-1:11211
TIMEOUT: '7200'
default:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: default
LOCATION:
- memcached-2:11211
VERSION: '1'
general:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: general
LOCATION:
- memcached-2:11211
mongo_metadata_inheritance:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: mongo_metadata_inheritance
LOCATION:
- memcached-2:11211
TIMEOUT: 300
session:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: session
LOCATION:
- memcached-3:11211
VERSION: '1'
staticfiles:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
KEY_FUNCTION: common.djangoapps.util.memcache.safe_key
KEY_PREFIX: staticfiles_general
LOCATION:
- memcached-2:11211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment