2014-04-14 13:44:38 -06:00

15 lines
474 B
Plaintext

<c-var name="count" value="0"/>
<c-def function="foo(cacheName, cacheKey)">
<cached-fragment cache-key="$cacheKey" cache-name="$cacheName">
Count: ${count++}
</cached-fragment>
</c-def>
<c-invoke function="foo('cacheA', 'keyA')"/>
<c-invoke function="foo('cacheA', 'keyA')"/>
<c-invoke function="foo('cacheA', 'keyB')"/>
<c-invoke function="foo('cacheB', 'keyA')"/>
<c-invoke function="foo('cacheB', 'keyA')"/>
<c-invoke function="foo('cacheB', 'keyB')"/>