Currently I have an event in a module that clears the cache for a
specific alias:
<cache-clear aliases="homePage"/>
I can see in the mach-ii logging where it hits the
CacheManager.clearCachesByAlias trace statements and clears the cached
items in the homePage alias.
I would like to be able to pass in the alias in an event arg, but I
can't just do <cache-clear aliases="${event.alias}"/>
So I moved it into a listener,
<cfif StructKeyExists(variables.handlersByAliases,
getKeyHash(arguments.alias))>
I added some of my own trace statements into the clearCachesByAlias
function and I can see them in the output, but this line returns false
and so nothing gets cleared from the cache:
<cfif StructKeyExists(variables.handlersByAliases,
getKeyHash(arguments.alias))>
Is there something special that the CacheClearCommand.cfc sets up that
I'm not getting by calling clearCachesByAlias() directly from my
listener?
--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/