You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/07/04 05:04:24 UTC

quick question on TraxTransformer and caching

how does the TraxTransformer indicate that the cacheability of its
contents depends on the request parameters, if useParameters is true? as
far as i can tell, it doesn't in any way. what's up with that?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: quick question on TraxTransformer and caching

Posted by giacomo <gi...@apache.org>.
On Wed, 4 Jul 2001, Donald Ball wrote:

> On Wed, 4 Jul 2001, Carsten Ziegeler wrote:
>
> > I did test the slides example and checked the code. It looks both ok.
> > You can indicate that
> > the request parameters are used inside the stylesheet by
> > specifying the parameter "use-request-parameters" in
> > the pipeline. Take a look at the slide example.
> > In the source of the transformer the _useParameters must be
> > true. The useParameters variable is the default behaviour
> > specified in the configuration of the transformer.
> > The _useParameters is the value for the current pipeline.
>
> i think we're missing each other. i'll try again. i wanted to add cookies
> to the xslt parameters. yeah, i know, cacheability, etc., etc., but it's
> the most expedient solution to a problem i'm trying to solve. so i
> duplicated the useParameters/_useParameters stuff with a useCookies
> section, but even when the cookies vary for two requests, i get the cached
> response the second time.
>
> looking at the cache functions, i note the generateKey method simply
> hashes the url of its input plus the String value of the map of
> parameters. maybe map.toString() isn't appropriate here? i'll try to get
> some more debugging going on. btw, should i commit this useCookies patch
> or is it best put in my own subclass of TraxTransformer?

Yeah, I noticed that and commited a corrcted version. Try again with you
cookie patch.

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: quick question on TraxTransformer and caching

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 4 Jul 2001, Carsten Ziegeler wrote:

> I did test the slides example and checked the code. It looks both ok.
> You can indicate that
> the request parameters are used inside the stylesheet by
> specifying the parameter "use-request-parameters" in
> the pipeline. Take a look at the slide example.
> In the source of the transformer the _useParameters must be
> true. The useParameters variable is the default behaviour
> specified in the configuration of the transformer.
> The _useParameters is the value for the current pipeline.

i think we're missing each other. i'll try again. i wanted to add cookies
to the xslt parameters. yeah, i know, cacheability, etc., etc., but it's
the most expedient solution to a problem i'm trying to solve. so i
duplicated the useParameters/_useParameters stuff with a useCookies
section, but even when the cookies vary for two requests, i get the cached
response the second time.

looking at the cache functions, i note the generateKey method simply
hashes the url of its input plus the String value of the map of
parameters. maybe map.toString() isn't appropriate here? i'll try to get
some more debugging going on. btw, should i commit this useCookies patch
or is it best put in my own subclass of TraxTransformer?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


AW: quick question on TraxTransformer and caching

Posted by Carsten Ziegeler <cz...@sundn.de>.
Hi,

I did test the slides example and checked the code. It looks both ok. 
You can indicate that
the request parameters are used inside the stylesheet by
specifying the parameter "use-request-parameters" in 
the pipeline. Take a look at the slide example.
In the source of the transformer the _useParameters must be
true. The useParameters variable is the default behaviour
specified in the configuration of the transformer.
The _useParameters is the value for the current pipeline.

Carsten

> Donald Ball wrote:
> 
> how does the TraxTransformer indicate that the cacheability of its
> contents depends on the request parameters, if useParameters is true? as
> far as i can tell, it doesn't in any way. what's up with that?
> 
> - donald
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: quick question on TraxTransformer and caching

Posted by giacomo <gi...@apache.org>.
On Tue, 3 Jul 2001, Donald Ball wrote:

> how does the TraxTransformer indicate that the cacheability of its
> contents depends on the request parameters, if useParameters is true? as
> far as i can tell, it doesn't in any way. what's up with that?

By use of a Map filled depending on the Configuration/Parametrization.
I have seen that it is not quite correct so I've corrected and commited
it.

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org