stribny / sidewinder

Django starter kit that focuses on good defaults, developer experience, and deployment. Updated for Django 5.
https://stribny.github.io/sidewinder/
MIT License
195 stars 13 forks source link

Configure caching #20

Open stribny opened 1 year ago

stribny commented 1 year ago

We could use e.g. database or Redis caching in development and Redis caching on the server since Redis is already available.

https://docs.djangoproject.com/en/4.2/topics/cache/

stribny commented 1 month ago
CACHES = {
    "default": {
        "BACKEND": "django.core.cache.backends.redis.RedisCache",
        "LOCATION": env.str("REDIS_URL", default="redis://127.0.0.1:6379?db=1"),
    }
}