X-Git-Url: http://git.shiar.net/gitweb.cgi/perl/plp/.git/blobdiff_plain/68a18bf55edfd520ec9853550b6d718bfb272788..1dd113c913fed66850297163930ce0b6e6915dc2:/PLP/Apache.pm diff --git a/PLP/Apache.pm b/PLP/Apache.pm index 5a9745c..835f2b4 100644 --- a/PLP/Apache.pm +++ b/PLP/Apache.pm @@ -16,6 +16,9 @@ BEGIN { require Apache2::RequestRec; require Apache2::RequestUtil; require Apache2::RequestIO; + Apache2::Const->import(-compile => qw( + HTTP_NOT_FOUND HTTP_FORBIDDEN OK + )); } else { require Apache::Constants; } @@ -79,3 +82,48 @@ sub handler { 1; +=head1 NAME + +PLP::Apache - Apache mod_perl interface for PLP + +=head1 SYNOPSIS + +Naturally, you'll need to enable I: + + apache-modconf apache enable mod_perl + +Setup F (often just create a F) with: + + + + SetHandler perl-script + PerlHandler PLP::Apache + PerlSendHeader On + PerlSetVar PLPcache On + + + +=head1 DESCRIPTION + +=head2 PerlSetVar configuration directives + +=over 16 + +=item PLPcache + +Sets caching B/B. When caching, PLP saves your script in memory and +doesn't re-read and re-parse it if it hasn't changed. PLP will use more memory, +but will also run 50% faster. + +B is default, anything that isn't =~ /^off$/i is considered On. + +=back + +=head1 AUTHOR + +Mischa POSLAWSKY + +=head1 SEE ALSO + +L, L, L +