cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Cocoon 2.1 cache
Date Wed, 02 Apr 2003 11:46:29 GMT
On Wed, 2003-04-02 at 09:42, zze-MORY Nicolas FTRD/DMI/REN wrote:
> How can i turn off the cache under Cocoon 2.1 ? because :
> 
> 
> <event-pipeline
>  
> class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
> 
> <stream-pipeline
>  
> class="org.apache.cocoon.components.pipeline.NonCachingStreamPipeline"/>
> 
> doesn't exist under Cocoon 2.1

You can now configure this in the sitemap itself. Inside
<map:components> you should find the following (or if it's not there,
add it):

--------------------------------------------
   <map:pipes default="caching">
     <map:pipe name="caching"
src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
     <map:pipe name="caching-point"
src="org.apache.cocoon.components.pipeline.impl.CachingPointProcessingPipeline">
       <autoCachingPoint>On</autoCachingPoint>
     </map:pipe>
     <map:pipe name="noncaching"
src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
   
     <!-- The following two can be used for profiling:-->
     <map:pipe name="profile-caching"
src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline"/>
     <map:pipe name="profile-noncaching"
src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline"/>
</map:pipes>
--------------------------------------------

change the default attribute from "caching" to "noncaching".
Alternatively, you can configure this on a per-pipeline level by adding
an attribute named "type" to the map:pipeline element, e.g.

<map:pipeline type="noncaching">

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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