Create JSR 286 Java Portlet - Caching Options

Use to specify whether the portlet should be cached by default for faster rendering on second and subsequent requests. More

Selecting the caching option indicates that portlet caching is managed by the portlet container. The portlet itself may choose to cache content for any given response. The settings on this page apply only when the portlet itself does not specify a caching condition.

Element Description

Do Not Cache By Default

Select to forgo the caching option.

Cache Portlet

Select to set up default caching for the current portlet. Then set default expiry conditions. Selecting this option indicates that portlet caching is managed by the portlet container.

Default Expiry Conditions

Set the conditions under which the cached portlet content will expire.

  • Cache Content Expires After [ ] seconds

    Select to specify that the cached portlet content should expire, and then enter the expiration period in seconds. The default expiration period is 60 seconds. The expiration period is the length of time the portlet content is held in cache before it is discarded. Once portlet content expires, the portlet is rendered afresh on the next request, the newly rendered portlet content is stored in cache, and the expiration countdown restarts.

  • Cache Content Never Expires

    Select to specify that the cached portlet content should never expire. This is a reasonable choice for portlets that contain static content that is unlikely to change.


Related Topics

"Introduction to Portlets" in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper

"Building Standards-Based Java Portlets Using JSR 286" in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper