Chapter 23. Configuring Caching

<feature><title>What You’ll Learn in This Hour</title> <objective>

How to configure cache backends

</objective>
<objective>

How to implement a per-site cache

</objective>
<objective>

How to implement a per-view cache

</objective>
<objective>

How to manage access to cached pages

</objective>
</feature>

One of Django’s best features is that it lets you easily generate web pages on-the-fly. It saves you a lot of development and maintenance time. However, this advantage comes at a price. Each time a request comes in, Django spends many cycles in database queries and page generation. On small to medium websites, this isn’t much of a problem. However, on large sites that receive several requests per second, this can quickly become ...

Get Sams Teach Yourself Django in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.