Initializes the output cache for the current page request based on an System.Web.UI.OutputCacheParameters object.
- cacheSettings
- An System.Web.UI.OutputCacheParameters that contains the cache settings.
You should not call this method. To enable and manipulate output caching for a page, use either the @ OutputCache directive in the .aspx file, or the methods and properties of the System.Web.HttpCachePolicy class. The latter are accessible through Response.Cache syntax in the page's code declaration block or code-behind file. For more information, see Caching ASP.NET Pages.