O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

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

Caching

One of the biggest performance wins you can get for your application results from the judicious use of caching. If, for example, you have a page that is dynamically created but is the same for the entire day, you will see dramatic performance increases if you cache this page. If it is cached, it has to be generated only once, and after that simply served up without the computation it takes to dynamically generate it. You can have the cache expire when the date changes and when the content needs to be regenerated.

The following sections discuss three approaches to caching: page caching, the cache API, and fragment caching. You’ll then see a number of caching examples.

Page Caching

Page output caching is a feature of ASP.NET that enables ...

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