Check status of “Site Collection Output Cache Settings” using SharePoint Object Model

If you want to get the current cache setting of a site through code you can use the following line of code.

SPSite site = new SPSite("http://{yoursite}")) 
SiteCacheSettings oCacheSettings =SiteCacheSettings.GetSiteCacheSettings(site);

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.