Ticket #69 (closed enhancement: completed)
Allow for hard coded criteria values by using a ${event.ArgName} syntax in the criteria
| Reported by: | peterfarrell | Owned by: | kurtwiersma |
|---|---|---|---|
| Priority: | major | Milestone: | Mach-II 1.6.0 beta |
| Component: | framework - caching | Version: | 1.6.0 - Framework |
| Keywords: | caching criteria CacheHandler | Cc: | |
| Blocking: | Blocked By: |
Description (last modified by peterfarrell) (diff)
Allow for hard coded criteria values by using a ${event.ArgName} syntax in the criteria. This would introduce the idea of scope to the ${} placeholder syntax
Using placeholder with scope (dynamic value for contentId and a static value for type):
<cache id="article" criteria="contentId=${event.contentId},type=print">
This is the same as above (we assume because contentId does not have a static value that we should go into the event for an arg named the same as the criteria key which in this case that is contentId and type is static value):
<cache id="article" criteria="contentId,type=print">
Also we should refactor how the criteria is stored in the CacheHandler from a sorted listed to a sorted array of structs.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

