NAME

Apache::AxKit::Plugins::Param::Expr - Add arbitrary expressions as AxKit parameters

SYNOPSIS

AxAddPlugin Apache::AxKit::Plugins::Param::Expr
PerlAddVar AxParamExpr uri '$r->uri'
PerlAddVar AxCacheParamExpr day 'time()/86400'
PerlAddVar AxCacheExpr '$r->connection->user'

DESCRIPTION

This plugin allows you to define additional AxKit parameters (used via toplevel <xsl:param name="..."/> elements in XSLT or $cgi->param('...') in XSP). Parameters declared this way override any submitted form content or query string parameters. Use 'AxParamExpr' for values that do not influence caching behaviour and 'AxCacheParamExpr' for values that do. In the example above, parameter "uri" does not modify cache validity (the uri is already part of the cache key) while "day" does (every new day all cached pages become invalid - somebody better cleaned up the cache regularly, since the new pages will have a different cache key). For symmetry, 'AxCacheExpr' allows you to change the caching behaviour without adding a parameter. The above example could be used to tell the cache that every user has different pages.

AUTHOR and LICENSE

Copyright (C) 2004, Jörg Walter.

This plugin is licensed under either the GNU GPL Version 2, or the Perl Artistic License.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 81:

Non-ASCII character seen before =encoding in 'Jörg'. Assuming CP1252