O'Reilly logo

Sams Teach Yourself Django in 24 Hours by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required