Mam stronę, która ma formanty, które są buforami wyjściowymi (częściowe buforowanie wyników). Są to ustawienie tak:Wyczyść częściowe buforowanie wyjściowe
[PartialCaching(86400, null, null, "campaign.whatwhere", true)]
public partial class controls_LatestEnquiriesListCached : System.Web.UI.UserControl
{
...
Z
public override string GetVaryByCustomString(HttpContext context, string custom)
{
if (custom == "campaign.whatwhere")
{
return (CampaignManager.CurrentCampaign.DefaultWorkTypeId ?? 0).ToString() + (CampaignManager.CurrentCampaign.DefaultEnquiryAreaId ?? 0).ToString();
}
return base.GetVaryByCustomString(context, custom);
}
W Global.asax
Jak mogę skonfigurować tak mogę usunąć ten bufor wyjściowy na konkretnej stronie?
Czy można ustawić tak jak MyPageWithCachedControl.aspx?ClearCache=true
???
dokładną kopią http://stackoverflow.com/questions/565239/any-way-to-clear-flush-remove-outputcache – Ramesh
także http://stackoverflow.com/questions/37101/how-to-clear-outputcache-for-website-without-restarting-app – Ramesh
Jak są te dokładne duplikaty? –