Submitted by Matthias Falkenberg on Nov 18, 2008 7:21:34 AM

Extension to given cachespec.xml samples

Hi there,

I would suggest to slightly modify the cachespec.xml samples given in the presentation material.

I reckon it would be beneficial to also include the WCM_CONTEXT parameter in the formation of the cache ID. It is set as query parameter to navigational URLs generated within the local rendering portlet if the portlet does not broadcast links to pages; in this case, there won't be a WCM_GLOBAL_CONTEXT parameter. To ensure that the content displayed by a portlet instance changes when clicking, say, links generated by a Navigator component, the WCM_CONTEXT must be considered in the formation of the cache ID.

The sample given below shows my proposed extension:

...

<cache-id>

...

<component id="WCM_CONTEXT" type="parameter">

<required>false</required>

</component>

</cache-id>

</cache-entry>

</cache>