HI Peter

Here are the code snippets that i have.

In the properties section of Mach-ii.xml

                <property name="Caching" type="MachII.caching.CachingProperty">
                        <parameters>
                                <parameter name="cachingEnabled" value="true" />
                                <parameter name="defaultCacheName" 
value="navigation" />
                                <parameter name="navigation">
                                        <struct>
                                                <key name="type"
value="MachII.caching.strategies.TimeSpanCache" />
                                                <key name="scope" 
value="application" />
                                                <key name="timespan" 
value="0,0,10,0" />
                                        </struct>
                                </parameter>
                        </parameters>
                </property>

Then i have this in a subroutine

                        <cache aliases="full-navigation" 
strategyName="full_navigation"
id="navigation">
                                <notify listener="SiteMapListener" 
method="fullNavigation"
returnArg="navigation" />
                        </cache>

Then in my view i have

<cfdump
var="#getAppManager().getCacheManager().getCacheStrategyManager().getCacheStrategyByName("full_navigation").get("navigation")#">


I have also dumped the application scope, but the cache is empty.
Can you see what i have done wrong? Do i need to do anythiong else?

Thanks


On Oct 13, 11:11 pm, "Peter J. Farrell" <[email protected]> wrote:
> jbuda said the following on 10/13/2010 04:59 PM:> Hi Peter
>
> > I'm not sure how I put the value into the cache. Is it not the same as
> > I would put a view? Or, wrapping the cache tag in the XML around the
> > <view-page>?
>
> > Read the link you sent, so do I have to code the putting if the value
> > into the cache within the listener, and not use the XML?
>
> If you wrap a cache tag around commands in the XML, the cache tag
> automatically creates the key.  If you are going it from within a
> listener is a different place, you have to know the key.
>
> I guess I'm not understand the question.  Can you explain what you are
> trying to do?
>
> .pjf

-- 
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

***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to