Skip to content

Instantly share code, notes, and snippets.

View JasonElkin's full-sized avatar

Jason Elkin JasonElkin

View GitHub Profile
@JasonElkin
JasonElkin / DefaultController.cs
Created February 9, 2018 09:05 — forked from dawoe/DefaultController.cs
Donut Cache examples from Umbraco UK Festival talk "The need for speed"
public class DefaultController : RenderMvcController
{
[UmbracoDonutOutputCache(CacheProfile = "LongPageCache",
Options = OutputCacheOptions.NoCacheLookupForPosts &
OutputCacheOptions.ReplaceDonutsInChildActions, Order = 100)]
public override ActionResult Index(RenderModel model)
{
return base.Index(model);
}
}