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

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.