Configure disk-based cache settings

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2008-07-19

Before you perform this procedure, confirm that:

Important

You must be a member of the Administrators group on the local computer in order complete this procedure.

Configure disk-based cache settings

Use this procedure to configure disk-based cache settings for a Web application.

Important

Before you make changes to the Web.config file, make a copy of it by using a different name (for example, Web.config1), so that if a mistake is made in the file, you can delete it and use the original file.

To configure disk-based cache settings

  1. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.

  2. In Internet Information Services (IIS) Manager, click the plus sign (+) next to the server name that contains the Web application, and then click the plus sign next to Web Sites to view the Web application(s) that have been created.

  3. Click the name of the Web application for which you want to configure the disk-based cache, and then double-click the Web.config file.

  4. In the Web.config Properties dialog box, on the ASP.NET tab, highlight the file location, and then press CTRL+C to copy it.

  5. Click Start, and then open Windows Explorer.

  6. Click in the Address box, and then press CTRL+V to paste the location of the Web.config file into the box.

  7. Click Go to open the Web.config file.

    Note

    If you see a dialog box that says that Windows cannot open the file, click Select the program from a list, and then click OK. In the Open With dialog box, click Notepad, and then click OK.

  8. In the Web.config file, find the following line: <BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="false"/>

  9. In this line, change the enabled parameter, from "false" to "true".

  10. 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.

  11. 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.

  12. 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.

  13. Save the file, and then close it.