cziegeler    2003/08/11 02:50:40

  Modified:    src/blocks/eventcache/samples sitemap.xmap
               src/blocks/eventcache/conf eventcache.xconf
  Log:
  The EventAware cache is not the default automatically; only the samples of the 
eventcache use it
  
  Revision  Changes    Path
  1.2       +7 -1      cocoon-2.1/src/blocks/eventcache/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/eventcache/samples/sitemap.xmap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sitemap.xmap      14 Jul 2003 02:50:45 -0000      1.1
  +++ sitemap.xmap      11 Aug 2003 09:50:40 -0000      1.2
  @@ -17,6 +17,11 @@
       <map:actions>
        <map:action name="cacheevent" src="org.apache.cocoon.acting.CacheEventAction"/>
       </map:actions>
  +    <map:pipes default="caching">
  +      <map:pipe name="event-aware" 
src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline">
  +        <parameter name="cache-role" 
value="org.apache.cocoon.caching.Cache/EventAware"/>
  +      </map:pipe>
  +    </map:pipes>
     </map:components> 
     
     <map:flow language="javascript">
  @@ -30,7 +35,8 @@
     </map:views>
   
     <map:pipelines>
  -    <map:pipeline>
  +    <map:pipeline type="event-aware">
  +      
         <map:match pattern="flow">
                <map:call function="cacheEvent"/>
         </map:match>
  
  
  
  1.2       +1 -2      cocoon-2.1/src/blocks/eventcache/conf/eventcache.xconf
  
  Index: eventcache.xconf
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/eventcache/conf/eventcache.xconf,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- eventcache.xconf  14 Jul 2003 02:50:45 -0000      1.1
  +++ eventcache.xconf  11 Aug 2003 09:50:40 -0000      1.2
  @@ -1,6 +1,5 @@
   <?xml version="1.0"?>
   <xconf xpath="/cocoon" unless="[EMAIL 
PROTECTED]'org.apache.cocoon.caching.impl.EventAwareCacheImpl']">
  -     <!-- Override default Cache impl and use the event aware version -->
  -     <component role="org.apache.cocoon.caching.Cache"
  +     <component role="org.apache.cocoon.caching.Cache/EventAware"
                  class="org.apache.cocoon.caching.impl.EventAwareCacheImpl"/>
   </xconf>
  
  
  

Reply via email to