XML Forms Persistence Resource Renderer

The default resource renderer uses a memory cache with a LRU displacement strategy (Least Recently Used). In news scenarios, in which most users display only the latest news items, you can generally achieve a good hit rate with this caching mechanism.

In other scenarios, in which access to resources is distributed more evenly, for example, bulletin boards, the hit rate can be lower. In this case, it can make sense to use the XML persistence resource renderer. If you use this renderer, the system persists the HTML fragment in a property of the XML resource. The caching mechanism then has two stages:

  1. Memory cache as for the default renderer
  2. Property of the XML resource

The first time that the resource is accessed, the system writes the HTML fragment to the document property. However, the XSL transformation is avoided for each subsequent access, which can lead to improved performance in this scenario.

Procedure

If you want to use the XML persistence resource renderer, proceed as follows:

  1. Create a set of resource renderer settings.
    1. Choose Configuration → Content Management → User Interface → Settings → Resource Renderer Settings → Resource Renderer Settings.
    2. Duplicate one of the following renderers:
      • NewsResourceDisplayRenderer
      • NewsResourceRenderer
    3. In the Resource Renderer field, choose the NewsPersRenderer entry.
  2. Create a layout set.
    1. Choose Configuration → Content Management → User Interface → Settings → Layout Set to do this.
    2. Duplicate one of the following layout sets:
      • NewsBrowser
      • NewsExplorer
    3. Select the resource renderer settings that you created in step one.
  3. Create an iView with this layout set.