// internal bool DoPostCacheSubstitutionAsNeeded(HtmlTextWriter writer) { if (!IsPostCacheAdHelper && SelectedAdArgs == null && Page.Response.HasCachePolicy && (int)Page.Response.Cache.GetCacheability() != (int)HttpCacheabilityLimits.None) { // The checking of the cacheability is to see if the page is output cached AdPostCacheSubstitution adPostCacheSubstitution = new AdPostCacheSubstitution(this); adPostCacheSubstitution.RegisterPostCacheCallBack(Context, Page, writer); return(true); } return(false); }
// internal bool DoPostCacheSubstitutionAsNeeded(HtmlTextWriter writer) { if (!IsPostCacheAdHelper && SelectedAdArgs == null && Page.Response.HasCachePolicy && (int)Page.Response.Cache.GetCacheability() != (int)HttpCacheabilityLimits.None) { // The checking of the cacheability is to see if the page is output cached AdPostCacheSubstitution adPostCacheSubstitution = new AdPostCacheSubstitution(this); adPostCacheSubstitution.RegisterPostCacheCallBack(Context, Page, writer); return true; } return false; }