Wednesday, March 13, 2013

Enable Disk-Based Caching in SharePoint


Disk-based caching is one way in which you can achieve faster processing of content stored in a Web application database. If your Web application contains large files such as images and multimedia files, enabling disk-based caching improves page delivery time because the cache stores files on the front-end Web server, thus reducing database traffic.
You can enable disk-based caching in the web.config file in the Web application to which you want to apply it. The changes you make to the web.config file will be applied to all site collections within the Web application.
NOTE Disk-based caching is referred to as BLOB (binary large object) caching within the web.config file.
In the web.config file, find the following line:

BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="false"
  1. In this line, change the
enabled
parameter, from "false" to "true".
  1. To change the size of the cache, type a new number for
maxSize
. The size is expressed in gigabytes (GB), and 10 GB is the default.
  1. If the directory that is specified in the
location 
parameter does not have enough space to accommodate the cache size, you can type a new directory for the location.
  1. To add new file types to the BLOB cache, type the file type next to the other file types. Separate each file type with a pipe (|) character as shown in the file.
  2. Save the file, and then close it.

No comments:

Post a Comment