Skip to content

Commit

Permalink
fix(api,cache): specifying redis cache, which will also be used for r…
Browse files Browse the repository at this point in the history
…ate limiting (#177)
  • Loading branch information
nutrina authored Mar 23, 2023
1 parent ab42445 commit 61d66f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/scorer/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,10 @@
)

MAX_BULK_CACHE_SIZE = 100

CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": env("CELERY_BROKER_URL", default="redis://localhost:6379/0"),
}
}

0 comments on commit 61d66f4

Please sign in to comment.