Tôi có một trang có các điều khiển là bộ đệm đầu ra (bộ nhớ đệm đầu ra một phần). Đây là những thiết lập như thế này:Xóa bộ nhớ đệm đầu ra một phần
[PartialCaching(86400, null, null, "campaign.whatwhere", true)]
public partial class controls_LatestEnquiriesListCached : System.Web.UI.UserControl
{
...
Với
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);
}
Trong Global.asax
Làm thế nào tôi có thể thiết lập để tôi có thể xóa bộ nhớ cache sản lượng này trên một trang cụ thể?
Có thể thiết lập như MyPageWithCachedControl.aspx?ClearCache=true
???
chính xác bản sao của http://stackoverflow.com/questions/565239/any-way-to-clear-flush-remove-outputcache – Ramesh
Cũng http://stackoverflow.com/question/37101/how-to-clear-outputcache-cho-website-without-restarting-app – Ramesh
Các bản sao chính xác này như thế nào? –