Template Fragment Caching
Cache just the expensive parts of a page.
Cache Just One Piece
Often only part of a page is slow. Fragment caching lets you cache that one block while the rest renders fresh each time.
Load the cache Tag
Fragment caching lives in a template tag library, so start your template with load cache to make it available.
{% load cache %}All lessons in this course
- Cache Backends and Redis
- Per-View and Per-Site Caching
- Template Fragment Caching
- Low-Level cache API and Invalidation