Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to get Donut Caching working per page for some controls. I'm overriding the following method in the UmbracoApplication class:
public class ApplicationStartup : UmbracoApplication
public override string GetVaryByCustomString(HttpContext context, string custom)
return "url=" + context.Request.Url.AbsoluteUri;
return base.GetVaryByCustomString(context, custom);
On my action method I have the following:
[DonutOutputCache(CacheProfile = "CarouselItems", VaryByCustom = "url", VaryByParam = "*")]
public ActionResult GetCarouselItems()
CarouselHelper helper = new CarouselHelper();
HeaderCarouselViewModel headerCarouselViewModel = helper.GetCarouselItems(this.CurrentPage);
return PartialView("Components/_Carousel", headerCarouselViewModel);
And finally I have the following cache profile:
<add name="CarouselItems" duration="10" varyByCustom="url" varyByParam="*" />
But, it never hits my GetVaryByCustomString method. Has anyone managed to get Donut Caching working on 7.4.1?
Try it in the global:
Doh, of course. It's definitely Monday :D
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted