cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: SVG Caching question
Date Mon, 17 Jun 2002 16:29:03 GMT
> From: Spectron International, Inc. [mailto:spectron@coqui.net]
> 
> Ok, found org.cocoon.caching.Cacheable, thats the interface I must
implement
> and have generateKey() return 0 and generateValidity() return null? I
tried
> to compile it and it gave me deprecation errors. I'm using cocoon-2.1
> because of the problem with the i18n transformer not using the locales
read
> from the map in the pipeline.

Things are a bit different in the Cocoon2.1.

BTW, if you do not implement Cacheable - it will not be cached.

Vadim


> Faw
> 
> ----- Original Message -----
> From: "Spectron International, Inc." <spectron@coqui.net>
> To: <cocoon-users@xml.apache.org>
> Sent: Monday, June 17, 2002 11:34 AM
> Subject: Re: SVG Caching question
> 
> 
> > Where are those 2 functions found? I checked the generator API docs
and
> > source code and they are not there.
> >
> > ----- Original Message -----
> > From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
> > To: <cocoon-users@xml.apache.org>
> > Sent: Monday, June 17, 2002 10:02 AM
> > Subject: RE: SVG Caching question
> >
> >
> > > > From: Spectron International, Inc. [mailto:spectron@coqui.net]
> > > >
> > > > I have a sitemap (below) that creates a page with a .png graph
in it.
> > > > I
> > > > don't want the graph cached. What would I have to do so the
graphs
> > > > aren't
> > > > cached? I checked in the archives, all I found was a mention of
> > > > EXPIRES but
> > > > no samples or anything.
> > > >
> > > > Thanks in advance,
> > > >
> > > > Faw
> > > >
> > > > <map:match pattern="UnitBarChart">
> > > >   <map:act type="get-msim-locale">
> > > >     <map:generate type="unit_readings" src="">
> > >
> > > Make your generator non-cacheable.
> > >
> > >     /**
> > >      * Generate the unique key.
> > >      * This key must be unique inside the space of this component.
> > >      * This method must be invoked before the generateValidity()
method.
> > >      *
> > >      * @return The generated key or <code>0</code> if the
component
> > >      *              is currently not cacheable.
> > >      */
> > >     long generateKey();
> > >
> > >     /**
> > >      * Generate the validity object.
> > >      * Before this method can be invoked the generateKey() method
> > >      * must be invoked.
> > >      *
> > >      * @return The generated validity object or <code>null</code>
if the
> > >      *         component is currently not cacheable.
> > >      */
> > >     CacheValidity generateValidity();
> > >
> > >
> > > Vadim
> > >
> > >
> > > >       <map:parameter name="abbr_name" value="{abbr_name}"/>
> > > >       <map:parameter name="long_name" value="{long_name}"/>
> > > >       <map:parameter name="contractor" value="{contractor}"/>
> > > >       <map:parameter name="bat_date" value="{bat_date}"/>
> > > >       <map:parameter name="bat_no" value="{bat_no}"/>
> > > >       <map:parameter name="mon_no" value="{mon_no}"/>
> > > >       <map:parameter name="locale" value="{locale}"/>
> > > >       <map:parameter name="samples" value="25"/>
> > > >     </map:generate>
> > > >     <map:transform src="html/UnitBarChart.xsl"/>
> > > >     <map:transform type="i18n">
> > > >       <map:parameter name="locale" value="{locale}"/>
> > > >     </map:transform>
> > > >     <map:transform type="extractor"/>
> > > >     <map:transform src="html/fragment-extractor.xsl"/>
> > > >     <map:serialize/>
> > > >   </map:act>
> > > > </map:match>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message