Skip to content

Commit

Permalink
build: Use memcached
Browse files Browse the repository at this point in the history
Fixes #284
  • Loading branch information
kesara committed Jul 13, 2023
1 parent 2bb8467 commit b9ca7ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
- docker/dev.env
depends_on:
- database
- memcached

frontend:
restart: on-failure
Expand All @@ -34,3 +35,7 @@ services:
POSTGRES_DB: "app"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"

memcached:
image: memcached:latest
hostname: memcached
4 changes: 2 additions & 2 deletions ietf/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9ca7ac

Please sign in to comment.