Use custom cache keys for caching uri coplets using input modules. ------------------------------------------------------------------
Key: COCOON-1717 URL: http://issues.apache.org/jira/browse/COCOON-1717 Project: Cocoon Type: Improvement Versions: 2.1.9-dev (current SVN) Reporter: Philippe Gassmann Attachments: input-module-attribute-patch When using cache global with attributes in a caching uri coplet, it is sometimes usefull to specify a parameter that the coplet depends on and that is not a coplet attribute. (the coplet could depend on layout parameters, the current user or something in the session). The patch I provide solve this problem by adding parameters to the cache key using input modules. The developper can add custom parameters as coplet data attributes : <attribute> <name>input-module-cache-key:userlogin</name> <value xsi:type="java:java.lang.String" >session-context:authentication/authentication/user/login</value> </attribute> <attribute> <name>input-module-cache-key:myLayout</name> <value xsi:type="java:java.lang.String" >portal-layout:MYLAYOUT/aspectDatas/tab</value> </attribute> The key used by the cache will contain, after regular coplet attributes : &userLogin=phil&myLayout=4 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira