O'Reilly logo

Pro ASP.NET MVC 5 Platform by Adam Freeman

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 12

image

Caching Content

Caching content is a natural extension of caching data, which I described in the previous chapter. Caching data allows you to generate content without having to calculate or load the data that a controller and view requires, which can be a good thing—but if the data hasn’t changed, then often the content produced by rendering the view won’t have changed either. And yet, the ASP.NET platform has to go through the entire request’s life cycle, which involves the MVC framework locating controllers, executing action methods, and rendering views—only to produce the same output as for the last request.

The ASP.NET platform ...

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