Activating and Clearing the Portal Runtime Cache 
You can optimize portal performance by adding selected portal pages and iViews to the portal runtime cache. The caching mechanism uses both memory (RAM) and the portal database cache. At runtime, you can then monitor the portal objects in the portal runtime cache to detect which objects need fine-tuning for improved response time and performance. You may need to clear the cache to resolve inconsistencies between the cached objects in memory and the cached objects in the database.
Note
You should activate the portal runtime cache only for static content
The portal runtime cache is effective only at runtime
You can optimize the performance of portal pages and iViews by modifying cache settings. The portal runtime cache causes pages and iViews to be called from the memory caches rather than from the database, which is considerably quicker. The validity period of the content of portal pages and iViews varies and can sometimes be valid only for certain users. Therefore you need to maintain cache settings for each portal page and iView.
In the Portal Catalog, in the context menu of the page or iView for which you want to activate caching, choose . The Properties editor appears.
Define values for the following properties:
Property |
Value |
|---|---|
Cache Level |
Specifies how the cache is used. Possible values:
|
Cache Validity Period |
Lifetime of items in the cache (in milliseconds) Default value: -1 (no active caching) Example: Enter 360000 for a lifetime of one hour. |
Save your changes.
Note
Caching does not take place when you are working in the administration environment. In this case, the content is loaded again each time you access the page or iView.
Inconsistencies can occur between the cached objects in memory and the cached objects in the database. You can detect this condition only by viewing the contents of the cache. You resolve these inconsistencies by clearing the portal runtime cache in the database. This operation clears the cached objects both in memory and in the database.
In the browser, perform one of the following:
Enter the following URL to clear the cached content in the database: http://<portalhostserver>:port/irj/servlet/prt/portal/prtroot/com.sap.portal.prt.cache.PRTRegionDBClear.
Enter the following URL to clear the cache in the specific cluster node to which you are currently connected: http://<portalhostserver>:port/irj/servlet/prt/portal/prtroot/com.sap.portal.prt.cache.PRTRegionMemoryClear.
At the prompt, log on to the portal. The portal runtime cache is automatically cleared. A message appears showing information about the cached content that was cleared.