X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/52b63e9e0c0e3d3019a2751158f59cae036b6fe4..a4dab1e4ec41edfa4ba07128f9ee5ff97a53c3ee:/PLP/Apache.pm diff --git a/PLP/Apache.pm b/PLP/Apache.pm index 6b28f94..b174486 100644 --- a/PLP/Apache.pm +++ b/PLP/Apache.pm @@ -41,8 +41,8 @@ sub init { $ENV{PLP_NAME} = $r->uri; - our $use_cache = $r->dir_config('PLPcache') !~ /^off$/i; -#S our $use_safe = $r->dir_config('PLPsafe') =~ /^on$/i; + $PLP::use_cache = $r->dir_config('PLPcache') !~ /^off$/i; +#S $PLP::use_safe = $r->dir_config('PLPsafe') =~ /^on$/i; my $path = $r->filename(); my ($file, $dir) = File::Basename::fileparse($path); chdir $dir; @@ -79,3 +79,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 +