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 14:02:59 GMT
> 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>


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