diff --git a/docker-compose.yml b/docker-compose.yml index 350bca2d..f5baf1e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - docker/dev.env depends_on: - database + - memcached frontend: restart: on-failure @@ -34,3 +35,7 @@ services: POSTGRES_DB: "app" POSTGRES_USER: "postgres" POSTGRES_PASSWORD: "password" + + memcached: + image: memcached:latest + hostname: memcached diff --git a/ietf/settings/base.py b/ietf/settings/base.py index f0da61f9..78bcbca3 100644 --- a/ietf/settings/base.py +++ b/ietf/settings/base.py @@ -173,8 +173,8 @@ CACHES = { "default": { - "BACKEND": "django.core.cache.backends.db.DatabaseCache", - "LOCATION": "cache_table", + "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache", + "LOCATION": "memcached:11211", }, "dummy": {"BACKEND": "django.core.cache.backends.dummy.DummyCache"}, } diff --git a/requirements.txt b/requirements.txt index 844b8274..08582ace 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,6 +15,7 @@ tqdm>=3.7.0 wagtail-markdown Pygments wagtail-orderable +pymemcache # env var configuration typed-environment-configuration>=0.1.3,<0.2