Use: Improve the speed at which Web pages load in the browser.
Types: a. The BLOB cache.
b. The Page Output Cache. (Need to activate SharePoint Server Publishing)
c. The Object Cache (Need to activate SharePoint Server Publishing)
BLOB cache: (Off by default)
A disk-based cache that stores files used by Web pages to load quickly and reduces the load on database server when it uses those files.
Stored directly on the hard disk drive of a front-end Web server computer.
By enabling it from Web.config of web application it will apply for all site coll of that web appl.
Configuration:
Start -> Administrative Tools -> Internet Information Services (IIS) Manager -> Navigate to sites
R-click web application site -> Explore -> Web.config -> Now find the following lines
<BlobCache location="C:\BlobCache\14" path="\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$" maxSize="10" enabled="false" />
Change the location attribute to specify a directory that has enough space to accommodate the cache size.
Change the enable to true,also can modify the file types to be cached &
Page Output cache: (ASP.net Output Cache)
An in-memory cache that saves rendered ASPX pages.
it reduces SQL calls & workload on the WFE because pages do not need to be re-rendered.
if the pages are anonymous, then no SQL check needs to be done at all present the cached pages.
Configuration:
For catch profile setting can configure at site coll level and also from web application level
<OutputCacheProfiles useCacheProfileOverrides="false" varyByHeader="" varyByParam="*" varyByCustom="" varyByRights="true" cacheForEditRights="false" />
Object cache: (On by default)
Stores metadata about SharePoint Server objects (like SPWeb, SPSite, SPList, etc.) on the WFEs.
If any data needs to be retrieved through these objects, the SQL Server will not be hit.
Content query WP, navigation, search query box and metadata navigation uses this feature.
Can be configured at the site collection level in UI by a site collection administrator,
Maximum cache size used by all site collections can configure from web application level
Configuration:
Open web.config of web application -> set size: <ObjectCache maxSize="100" /> -> save it
Types: a. The BLOB cache.
b. The Page Output Cache. (Need to activate SharePoint Server Publishing)
c. The Object Cache (Need to activate SharePoint Server Publishing)
BLOB cache: (Off by default)
A disk-based cache that stores files used by Web pages to load quickly and reduces the load on database server when it uses those files.
Stored directly on the hard disk drive of a front-end Web server computer.
By enabling it from Web.config of web application it will apply for all site coll of that web appl.
Configuration:
Start -> Administrative Tools -> Internet Information Services (IIS) Manager -> Navigate to sites
R-click web application site -> Explore -> Web.config -> Now find the following lines
<BlobCache location="C:\BlobCache\14" path="\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$" maxSize="10" enabled="false" />
Change the location attribute to specify a directory that has enough space to accommodate the cache size.
Change the enable to true,also can modify the file types to be cached &
maxSize -> Save the config.
Page Output cache: (ASP.net Output Cache)
An in-memory cache that saves rendered ASPX pages.
it reduces SQL calls & workload on the WFE because pages do not need to be re-rendered.
if the pages are anonymous, then no SQL check needs to be done at all present the cached pages.
Configuration:
For catch profile setting can configure at site coll level and also from web application level
<OutputCacheProfiles useCacheProfileOverrides="false" varyByHeader="" varyByParam="*" varyByCustom="" varyByRights="true" cacheForEditRights="false" />
Object cache: (On by default)
Stores metadata about SharePoint Server objects (like SPWeb, SPSite, SPList, etc.) on the WFEs.
If any data needs to be retrieved through these objects, the SQL Server will not be hit.
Content query WP, navigation, search query box and metadata navigation uses this feature.
Can be configured at the site collection level in UI by a site collection administrator,
Maximum cache size used by all site collections can configure from web application level
Configuration:
Open web.config of web application -> set size: <ObjectCache maxSize="100" /> -> save it