On Monday 10 December 2001 20:16, Gavin Carr wrote:
> The problem is AxKit doesn't include the query path in it's caching hash
> function by default. You can force it yourself by including a custom
> handler before AxKit in your PerlHandler. Something as simple as the
> following seems to work fine:
>
> sub handler
> {
> my $r = shift;
> my $apr = Apache::Request->instance($r);
> my $parms = $apr->parms();
> $r->notes('axkit_cache_extra', '?' . join('|',%$parms));
> return DECLINED;
> }
>
> Cheers,
> Gavin
Ummmmmm, that seems like a fairly significant shortcoming to me... Granted,
your trick works, but if I'm not mistaken you are essentially defeating
caching for the page entirely? The cache should consider not only the URL, it
should also consider ALL the HTTP headers as well! I mean what if I request
the page in English and then request the same URL again in French (for
example)? Before I comment further I'll take a look at the default caching
module, but it sort of sounds like it could use some refinement.
>
> On Mon, Dec 10, 2001 at 04:47:59PM -0800, Brian Tingle wrote:
> > No, still the same problem with LibXSLT.
> >
> > But I misstated the problem slightly.
> > Its not that the parameters don't get passed, but rather that it seems
> > only to remember the first set of parameter that got passed; even with no
> > cache.
> >
> > If I do
> > /ucpress/tobacco-war.xml?part=14&display=standard&style=generic.css
> > first,
> > Then /ucpress/tobacco-war.xml; then
> > tobacco-war.xml?part=13&display=&style=generic.css; I get the same page
> > over and over, but the page I am getting is the first page that I
> > requested.
> >
> > Even after stopping and starting apache several time, I still get the
> > result for the first set of parameters I ever passed, not the result for
> > the parameters I am currently requesting.
> >
> > My client is not caching it, because if I
> > /ucpress/terry.xml?part=8&display=standard&style=generic.css from lynx on
> > a remote host, and then /ucpress/terry.xml on my machine; I get the
> > results for part=8. But my netscape has never been to that URL before.
> >
> > Does anyone have any ideas how to debug this?
> >
> > AxKit-1.4 apache_1.3.22 mod_perl-1.26
> > This is perl, version 5.005_03 built for sun4-solaris
> > SunOS everest 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-Enterprise
> > libxml2-2.4.12 libxslt-1.0.9 Sablot-0.71
> > Apache-Session-1.53 XML-LibXML-1.31
> > Bundle-libnet-1.00
> > Compress-Zlib-1.09 XML-LibXSLT-1.31
> > DBD-AnyData-0.05 XML-Parser-2.30
> > DBD-CSV-0.1027 XML-Parser.2.30.tar
> > DBI-1.20 XML-SAX-0.03
> > Digest-MD5-2.14 XML-SAX-0.03.tar
> > File-Spec-0.82 XML-Sablotron-0.71
> > File-Temp-0.12 XML-Twig-2.02
> > MD5-2.02 XML-XPath-1.10
> > SQL-Statement-0.1020 perlSGML.1997Sep18
> > Storable-1.0.12 Text-CSV_XS-0.22 Tie-DBI-0.91
> > gcc version 2.95.2 19991024 (release)
> >
> > At 03:14 PM 12/10/01 -0500, Steve Willer wrote:
> > >On Mon, 10 Dec 2001, Brian Tingle wrote:
> > > > something like
> > > > /ucpress/jaffe.xml?part=5&display=standard&style=generic.css works in
> > > > cocoon, but when I Alias /ucpress to the to the production directory
> > > > that cocoon uses, I just get the table of contents, not the chapter
> > > > of the book
> > >
> > >Just a thought...have you tried switching your XSLT language handler to
> > >LibXSLT from Sablotron? I know parameters work fine with LibXSLT...I
> > > don't know about Sablotron, as it's kinda become the cousin in the
> > > attic that nobody likes to talk about.
> > >
> > >
> > >
> > >
> > > http://escholarship.cdlib.org/ucpress/jaffe.xml?part=5&display=standard
> > >&style=generic.css
> > >
> > > > [cocoon]
> > >
> > > http://jarda.cdlib.org:8081/ucpress/jaffe.xml?part=5&display=standard&s
> > >tyle=generic.css
> > >
> > > > [Axkit]
> > > >
> > > > httpd.conf
> > > > ...
> > > > PerlModule AxKit
> > > > ...
> > > > Alias /ucpress /escholarship/ucpress
> > > > <Location /ucpress>
> > > > SetHandler perl-script
> > > > PerlHandler AxKit
> > > > AxAddStyleMap application/x-xpathscript
> > >
> > > Apache::AxKit::Language::XPathScript
> > >
> > > > # add the following only if you intend to install Sablotron
> > > > AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot
> > > > # AxCacheDir /cdlstats/apache/ax_cache
> > > >
> > > > </Location>
> > > > ...
> > > >
> > > >
> > > > -- Brian Tingle
> > > > Development Programmer, California Digital Library
> > > > (510)987-0443
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -- Brian Tingle
> > Development Programmer, California Digital Library
> > (510)987-0443
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]