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:
-
The default value of this cache is 360 minutes.
-
To modify the cache duration, do the following:
-
Navigate to the root folder of the Smart Previews Web Resources site.
-
Open the web.config.
-
Locate the setting
SPCacheDuration
. -
Change the default value to the desired value (in minutes).
-
Save.
-
-
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:
-
The default value of this cache is 60 minutes.
-
To modify the cache duration, do the following:
-
Navigate to the root folder of the Smart Previews Hybrid site.
-
Open the file web.config.
-
Locate the setting
CacheTimeoutMinutes
.
-
-
Change the default value to the desired one (in minutes).
-
Save.
-
Restart the site and recycle the application pool corresponding to the site.