How to Configure Previews Cache Duration

The Smart Previews cache keeps in memory information about preview statuses, resources and actual document previews for a period of time so that Smart Previews is faster when displaying document previews.

There are 2 layers of cache in Smart Previews:

  • Client side

  • Server side

Client Side

On the client side, in the Smart Previews Web Resources component, perform the following steps:

  1. The default value of this cache is 360 minutes.

  2. To modify the cache duration, do the following:

    1. Navigate to the root folder of the Smart Previews Web Resources site.

    2. Open the web.config.

    3. Locate the setting SPCacheDuration.

    4. Change the default value to the desired value (in minutes).

    5. Save.

  3. Restart the site and recycle the application pool corresponding to the site.

Server Side

On the server side, in the Smart Previews Hybrid component, perform the following steps:

  1. The default value of this cache is 60 minutes.

  2. To modify the cache duration, do the following:

    1. Navigate to the root folder of the Smart Previews Hybrid site.

    2. Open the file web.config.

    3. Locate the setting CacheTimeoutMinutes.

  3. Change the default value to the desired one (in minutes).

  4. Save.

  5. Restart the site and recycle the application pool corresponding to the site.

Limitation: If the document is updated in the source system, users will see the new version of the document in the Document Viewer after the longest cache duration.