Set portlet fragment caching


 

+

Search Tips   |   Advanced Search

 

After a portlet is invoked and completes generating the output to cache, a cache entry is created, containing the output and the side effects of the portlet. These side effects can include calls to other portlets or metadata about the entry, including timeout and entry priority information.

Set portlet fragment caching with the WebSphere Application Sever admin console to save the output of portlets to the dynamic cache.

To enable portlet fragment caching...

  1. In the admin console, click...

      Servers | Application servers | myserver | Portlet container settings | Portlet container

  2. Select Enable portlet fragment cache under the Configuration tab.

  3. Click Apply or OK.
  4. Restart WAS.

Unique entries are distinguished by an ID string that generates from the PortletRequest object each time the portlet runs. We can then base portlet fragment caching on:

 

Next steps

Define a cache policy for the portlets. Portlets are not cached unless an applicable caching policy is defined in a cachespec.xml file.

 

Related concepts

Portlets

 

Related tasks

Set portlet fragment caching with wsadmin
Set caching policies for portlets

 

Related

Portlet container settings