> Michael Hartle wrote:
>
> Michael Hartle wrote:
>
> > worked perfectly, changing the colors or the text changes the
> > resulting images. Sadly, the caching performance is nonexistant, as
> > there is just one cached stream result per pipeline instead of one
> > cached stream result per URL per pipeline; I am currently looking for
> > easy ways to resolve this design issue and I would be happy to hear
> > any ideas.
>
> I found a solution that seems to work, enabling returning the last
> cached result for that URL matching the pipeline, by changing "pcKey" to
> "pcKey + environment.getURI()" in all method calls on the
> "streamCache"-Object in processReader(Environment) and
> process(Environment) in
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.java. As I
> am not sure that this won't break anything else (the keys in the
> streamCache are not PipelineCacheKey-objects anymore, but Strings), I
> would appreciate any comment or feedback ;)
>
The current cache implementation is designed to be independent of the uri
processed. This means, if you have two different URLs which point to exactly
the same pipeline (which means they have the same response) there is only
one cached object in the cache which is used for both uris.
This design decision has a great impact on the overal caching performance.
If you have two pipelines like the following:
Pipeline A: G[a.xml] -> T[s.xsl] -> T[Not cacheable A] -> S
Pipeline B: G[a.xml] -> T[s.xsl] -> T[Not cacheable B] -> S
For both pipelines is the response of the first two stages cacheable, which
means the output of the T[s.xsl] is cached. The key used for both pipelines
is exactly the same as in both cases the output is really the same.
If you have a component which depends on sitemap parameters the generated
key for this component must have all this parameters in the key. So if there
are two different pipelines with the same component but different parameters
this must be different keys for exactly this component.
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto: [EMAIL PROTECTED]
================================================================
> Best regards,
>
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]