Apache::AxKit::Plugin::QueryStringCacheRegexp - Cache based on QS and regular expression matching
SetHandler axkit AxAddPlugin Apache::AxKit::Plugin::QueryStringCacheRegexp PerlSetVar AxQueryStringCacheRegexpUse '\w{2,15}' PerlSetVar AxQueryStringCacheRegexpIgnore 'foo.*'
This module is a replacement for Apache::AxKit::Plugin::QueryStringCache. It offers the following at the expense of a little overhead:
The querystring is "taken apart", the parameters are matched against a positive (use) and a negative (ignore) pattern, both to be specified in httpd.conf. A changed order of parameters, old (&) vs. new-style (;) delimiters or multiple occurances of the same parameter will not force AxKit to retransform a document.
&
;
Parameters taken into account will have to match the use-pattern and not match the ignore-pattern (if given).
Setting AxDebugLevel 7 or greater prints some debug-info to the log.
AxDebugLevel 7
PerlSetVar AxQueryStringCacheRegexpUse '^\w{2,15}$'
Takes a perl regular expression; ^\w+$ is used if omitted.
^\w+$
PerlSetVar AxQueryStringCacheRegexpIgnore '^foo.*'
Takes a perl regular expression; No negative matching is made if omitted.
In this example above, one defines all parameters of 2 to 15 alphanumeric characters which do not begin with "foo", as significant for the cache.
None known at this time.
Apache::AxKit::Plugin::QueryStringCache
http://www.axkit.org/
http://www.axkitbook.com/
Hansjoerg Pehofer, <hansjoerg.pehofer@uibk.ac.at>
Copyright (C) 2004-2006 by Hansjoerg Pehofer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
To install Apache::AxKit::Plugin::QueryStringCacheRegexp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::AxKit::Plugin::QueryStringCacheRegexp
CPAN shell
perl -MCPAN -e shell install Apache::AxKit::Plugin::QueryStringCacheRegexp
For more information on module installation, please visit the detailed CPAN module installation guide.