Donut Caching in ASP.NET MVC

Posted by: youve been HAACKED, on 06 Nov 2008 | View original | Bookmarked: 0 time(s)

With ASP.NET MVC, you can easily cache the output of an action by using the OutputCacheAttribute like so. [OutputCach(Duration=60, VaryByParam="None")] public ActionResult CacheDemo() { return View(); } One of the problems with this approach is that it is an all or nothing approach. What if you want a section of the view to not be cached? Well ASP.NET does include a <asp:Substitution /> control which allows you to specify a method in your Page class that gets called every time...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1755 | Hits: 63

Similar Posts

  • Html Encoding Nuggets With ASP.NET MVC 2 more
  • MvcContrib working on Portable Areas more
  • Video: DevExpress Plans For ASP.NET MVC more
  • MvcContrib version control has moved to GitHub more
  • Lots of buzz about MvcContrib! more
  • The ASP.NET MVC ActionController The controllerless action, or actionless controller more
  • Afternoon of ASP.NET MVC [16 June] (free Headspring event) more
  • ASP.NET MVC 2.0 and VS 2010 plan now public more
  • Donut Hole Caching in ASP.NET MVC more
  • Technology Related Links for May 13th more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD