User assistance for content authors |
---|
Using the list-rendering cache
The IBM® Digital Data Connector (DDC) for WebSphere® Portal framework allows to cache large fragments of the markup generated by your lists.
About this task
The markup fragments are cached in the com.ibm.workplace.wcm.pzn.plr.ListRenderingCache. To use this cache, you apply the ListRenderingCache rendering plug-in. It uses the IBM Web Content Manager design components involved in the markup generation for this cache. Proceed as follows:
Procedure
Results
Using the list rendering cache as described here can improve
performance by caching fully rendered markup fragments.
Notes:
- The ListRenderingCache plug-ins cache the cached markup only if you enabled the ListRenderingCache. Rendering the list on a cache hit can then be faster than with the ListRenderingCache disabled.
- If you disable the ListRenderingCache, caching is not active, but all markup generated between the start and the stop action on the ListRenderingCache plugin is rendered normally.
When you use the list rendering
cache, you can still have context dependent data in the markup. By
default, all values of non-lazy computed item attributes and list
properties are not cached with the markup, but recomputed with every
rendering. This way, state dependent data, for example stateful portal
URLs, continue to work as expected. If you want to improve performance
even more, you can cache the full markup. To do so add a type="static" parameter
to the render action as follows:
[Plugin:ListRenderingCache action="render" type="static" elementName=""]