Back to search

Django caching basics

Cache expensive work at the right layer: low-level data, per-view output, or template fragments.

Django Medium Theory

Django caching basics

Cache expensive work at the right layer: low-level data, per-view output, or template fragments.

  • Trade freshness for speed
  • Use stable cache keys
  • Invalidate intentionally

Django caching basics