I have method:
[HttpGet]
[OutputCache(Duration = 300, Location = OutputCacheLocation.Client)]
public JsonResult TopNotification(Guid? portalIdentifier, string url)
{
var notificationMessages = new List<NotificationModel>();
//Filling notification messages
return Json(notificationMessages, JsonRequestBehavior.AllowGet);
}
It is called from the base layout: @Html.Partial("TopNotification")
I need to rewrite my notificationMessages when certain action occurs before the duration of cache ends. I meen when User goes to certain URL I need to refill the messages.