cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: AW: quick question on TraxTransformer and caching
Date Wed, 04 Jul 2001 19:06:53 GMT
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


Mime
View raw message