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"
- In this line, change the
enabled
parameter, from "false" to "true".
- 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.
- 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.
- 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.
- Save the file, and then close it.
No comments:
Post a Comment