In this article we will discuss about how we can improve
performance of a web site using Blob Cache in SharePoint 2010. There are also different types of other cache
like Page Output Cache, Object Cache etc.
- BLOB (Binary Large Object cache ) is a disk based cache in
SharePoint. By this technique the data is stored on the Hard-Disk of the Web
Front End Server. Here the first call will fetch the data from the server and
stored in Web Front End Server. And for any further calls for same data, the
data will be retrieved from the cache version.
- You can store different type of data like images, audio,
video etc.
- By default the BLOB cache is turned OFF, we have to configure in
web.config file of the web application to turn in ON.
- To configure this Open the web.config file of the web
application and search for:
<BlobCache location="C:\blobCache"
path="\.(gif|jpg|png|css|js)$" maxSize="10"
enabled="false"/>
And modify like below:
Note: Please take a back of web.config before changing it.
<BlobCache location="C:\blobCache"
path="\.(gif|jpg|png|css|js|MP3|WMV)$" maxSize="5"
max-age="3600" enabled="true" />
Here
Location: Where you want your cache will be stored.
Path: The type of data to cache.
MaxSize: The size in GB of the cache
Max-Age: Maximum time in Cache in seconds.
Enabled: Parameter to enable.
No comments:
Post a Comment