Django includes a flexible caching framework supporting multiple levels of caching (whole pages, view results, template fragments, or arbitrary data) and multiple backends (in-memory, Redis, Memcached, database). Caching avoids repeating expensive work — one of the highest-impact performance optimizations.
Configuring a cache backend
CACHES = {
: {
: ,
: ,
}
}
