Configure the Portlet Cache
The basic cache unit represents markup fragments created per page, per one user session. The portlet markup is not always cached. Disabling markup caching saves memory usage, but has a negative impact on performance.
Use the following parameters to control the use of the portlet cache at run-time:
- CPSMaxCacheSizePerPortlet
Specifies the number of markup fragments cached for each portlet, per page, per user. For example, a value of 5 with 1000 users, 10 pages, and 4 portlets per page can generate a maximum of 200000 entries in the cache (1000 x 10 x 4 x 5).
This parameter can have the following values:
Parameter
Value
-1 (default)
Saves unlimited number of portlet markups
0
Disables markup caching
1 or an integer greater than 1
Limits the number of markups to a specified number
You must provide run-time values for this parameter for every application server that runs the presentation service.
- properties.config.cps.cache.timeToIdleSeconds
Specifies the length of time, in seconds, to keep the page markup fragments in the cache during a period of inactivity. If the page is not accessed during that time, its cache contents are deleted.
The default value is 1800 (30 minutes).
- properties.config.cps.cache.timeToLiveSeconds
Specifies the length of time, in seconds, to keep the page markup fragments in the cache. After this time, the markup is deleted even if the cache is still active.
The default value is 86400 (24 hours).
- properties.config.cps.cache.checkExpiryIntervalSeconds
Specifies the length of time, in seconds, that represents the frequency with which the system checks for expired markup fragments in the cache.
The default value is 300 (5 minutes).
To enable or disable encryption of the portlet markup fragments, use the parameter encryptTemporaryFiles of the Environment category in IBM® Cognos® Configuration. For more information, see the IBM Cognos Installation and Configuration Guide.