Easiest way to add write-through cache for auth_user queries?

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • django-cachalot

    No effort, no worry, maximum performance.

    Particularly I use django-cachalot, as it's easy to use and very feature complete for my use cases: https://github.com/noripyt/django-cachalot

  • django-cached_authentication_middleware

    A drop in replacement for django's built in AuthenticationMiddleware that utilizes caching.

    I found this which basically does that, but for an incredibly old Django version, but it can serve as a starting point for your own middleware.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • django-cache-machine

    Automatic caching and invalidation for Django models through the ORM.

    There's also django-cache-machine if you'd like to do model caching on a more general level. It sounds promising, but I haven't used it, so can't speak to its capabilities.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts