When the View service converts a document to HTML, it caches the results. If it receives a request for the same document again, it retrieves the version from the cache, rather than converting it again.
You can use an internal View cache, or you can cache documents on a memcached server instance. For details about memcached servers, refer to http://memcached.org.
You can also share a cache between multiple View services.
By default, the View service uses an internal cache, stored on disk. You can configure how this cache behaves.
Open the HPE IDOL Server configuration file in a text editor.
In the [Viewing]
section, set CacheType
to Internal
. For example:
CacheType=Internal
In the [Viewing]
section, set CacheExpirySeconds
to the length of time (in seconds) that you want to keep the cache. Use a large value to ensure that the View service does not have to regularly convert the same documents. For example:
CacheExpirySeconds=604800
In the [Paths]
section, set ViewCacheDirectory
to the directory in which you want the View service to store the cache. The View service must have write access to this directory. For example:
ViewCacheDirectory=C:\IDOL\IDOLServer\IDOL\view\Cache
Save and close the configuration file. Restart HPE IDOL Server for your changes to take effect.
The View service can store cache documents in a memcached server instance.
By default, the memcached program has a maximum entry size limit of 1 megabyte, so it cannot process files bigger than 1 megabyte.
Open the HPE IDOL Server configuration file in a text editor.
Find the [Viewing]
section.
Set CacheType
to Memcached
. For example:
CacheType=Memcached
Set CacheServers
to a comma-separated list of host:port
pairs, where:
host
|
is the host name or IP address of the memcached server. |
port
|
is the port that View must use to contact the memcached server. |
For example:
CacheServers=localhost:11211,cacheserver:21532
Save and close the configuration file. Restart HPE IDOL Server for your changes to take effect.
You can share a View cache between multiple View services. To use a shared cache, you must have a memcached server instance that each View service can access. This memcached server stores information about where to find the converted cache documents, so that each View service can retrieve them.
When you use a shared cache, the ResetCache
action and automatic cache expiration are unavailable. The CacheExpirySeconds
parameter specifies only how often to delete old, duplicate job files, but it does not automatically delete the newest instance of a job.
Open the HPE IDOL Server configuration file in a text editor.
Find the [Viewing]
section.
Set CacheType
to Internal
. For example:
CacheType=Internal
Set SharedCache
to True
. For example:
SharedCache=True
Set CacheServers
to a comma-separated list of host:port
pairs, where:
host
|
is the host name or IP address of the memcached server. |
port
|
is the port that View must use to contact the memcached server. |
In the [Paths]
section, set ViewCacheDirectory
to the directory to use to store the cache. For example:
ViewCacheDirectory=C:\View\Cache
Save and close the configuration file. Restart HPE IDOL Server for your changes to take effect.
Repeat Step 1 to Step 7 for each View service that must share the cache.
|