cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: WritingForCacheEfficiency
Date Sat, 18 Sep 2004 16:00:27 GMT
   Date: 2004-09-18T09:00:27
   Editor: SylvainWallez <sylvain@apache.org>
   Wiki: Cocoon Wiki
   Page: WritingForCacheEfficiency
   URL: http://wiki.apache.org/cocoon/WritingForCacheEfficiency

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -15,9 +15,10 @@
 
 Here's a reminder of the various steps that occur when handling a request :
  1. the sitemap is executed, meaning we create a pipeline object, and pipeline components
: generator, transformers, and serializer.
- 1. the {{{setup()}}} method of all pipeline components is called (except serializer which
doesn't have one)
- 1. the {{{getKey()}}} method of all pipeline components is called[[BR]] [[BR]]Knowing the
key, the pipeline can get the associated cache entry and its validity. If the cache validity
either is invalid or needs a fresh validity object to be compared with, then :[[BR]].
- 1. the {{{getValidity()}}} method of all pipeline components is called[[BR]] [[BR]]The pipeline
can then know if the cache entry is valid. If it's valid, it delivers the cached content.
If it's invalid, then :[[BR]].
+ 1. the {{{setup()}}} method of all pipeline components is called (including serializers
that implement SitempaModelComponent))
+ 1. the serializer is asked for the response mime-type
+ 1. the {{{getKey()}}} method of all pipeline components is called[[BR]] [[BR]]Knowing the
key, the pipeline can get the associated cache entry and its validity. If the cache validity
either is invalid or needs a fresh validity object to be compared with, then :[[BR]][[BR]]
+ 1. the {{{getValidity()}}} method of all pipeline components is called[[BR]] [[BR]]The pipeline
can then know if the cache entry is valid. If it's valid, it delivers the cached content.
If it's invalid, then :[[BR]][[BR]]
  1. the pipeline is connected. This means {{{setXMLConsumer()}}} is called on transformers
and {{{setOutputStream()}}} is called on the serializer
  1. the generator's {{{generate()}}} method is called, and starts the SAX stream processing,
resulting first in {{{startDocument()}}} being called on transformers and serializer.
 

Mime
View raw message