Skip to content

Commit

Permalink
add redis caching (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Mar 11, 2021
1 parent 7d04d32 commit b0c6b66
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 122 deletions.
6 changes: 6 additions & 0 deletions ephios/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@

DATABASES = {"default": env.db_url()}

# Caches
CACHES = {"default": env.cache_url(default="locmemcache://")}
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
DJANGO_REDIS_IGNORE_EXCEPTIONS = True
DJANGO_REDIS_LOG_IGNORED_EXCEPTIONS = True

# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators

Expand Down
Loading

0 comments on commit b0c6b66

Please sign in to comment.