O'Reilly logo

Django 1.0 Web Site Development by Ayman Hourieh

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

Improving performance with caching

Pages of web applications are dynamically generated. Code is executed to process user input and generate output every time a page is requested. There are a lot of overheads involved in generating dynamic pages, especially when compared to serving static HTML files. The code may connect to a database, perform computationally expensive calculations, process files, and so on. At the same time, being able to generate pages with code is exactly what makes a web site dynamic and interactive. Wouldn't it be great if we could get the best of both worlds? This is what caching does, and it's a feature that is implemented in most sites with medium to high traffic.

When a page is requested, caching works by storing the generated ...

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