Skip to content
Snippets Groups Projects
Verified Commit adfbad45 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Replace memcached with redis in docs

parent b2b3937b
No related branches found
No related tags found
1 merge request!508Move cache and session store to Redis
Pipeline #6182 passed
......@@ -12,6 +12,8 @@ from .util.core_helpers import (
merge_app_settings,
)
IN_PYTEST = "PYTEST_CURRENT_TEST" in os.environ or "TOX_ENV_DIR" in os.environ
ENVVAR_PREFIX_FOR_DYNACONF = "ALEKSIS"
DIRS_FOR_DYNACONF = ["/etc/aleksis"]
......@@ -209,7 +211,7 @@ REDIS_PASSWORD = _settings.get("redis.password", None)
REDIS_URL = f"redis://{REDIS_USER+'@' if REDIS_USER else ''}{REDIS_HOST}:{REDIS_PORT}/{REDIS_DB}"
if _settings.get("caching.redis.enabled", True):
if _settings.get("caching.redis.enabled", not IN_PYTEST):
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
......
......@@ -38,11 +38,11 @@ A configuration file might look like this::
password = "SuperSecretPassword"
[caching]
memcached = { enabled = true, address = "127.0.0.1" }
redis = { enabled = true, address = "127.0.0.1" }
The `secret_key` setting above defines a single value. The following `http`
section defines a table (cf. a dictionary) in one way, and you can see the
second form of such a table in the `memcached` setting (we could as well
second form of such a table in the `redis` setting (we could as well
have defined another section and placed `enabled` and `address` below it
as scalars).
......
This diff is collapsed.
......@@ -51,7 +51,6 @@ django-auth-ldap = { version = "^2.2", optional = true }
django-maintenance-mode = "^0.15.0"
django-ipware = "^3.0"
django-impersonate = "^1.4"
python-memcached = "^1.59"
django-hattori = "^0.2"
psycopg2 = "^2.8"
django_select2 = "^7.1"
......
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