We were making a call to the Controller action method like below from our razor view:
[OutputCache(Duration = 3600, VaryByParam = "siteId;moduleId")]
public ActionResult RenderPromos(int siteId, string moduleId, Promos moduleContent)
{
return PartialView("~/Views/Partials/PromoItem.cshtml", moduleContent);
}
As can be seen above we used to cache it and vary based on two parameters. How can this be achieved in v10 using CachedPartialAsync ?