Apache::AxKit::LanguagUserSContributedApache::AxKit::Language::XSP::Preload(3)NAMEApache::AxKit::Language::XSP::Preload - preload compiled XSP scripts
SYNOPSIS
Use something similar to this in your httpd.conf:
PerlModule AxKit
PerlSetVar AxXSPPreloadDir /etc/apache/xsp-preload
PerlModule Apache::AxKit::Language::XSP::PreloadDESCRIPTION
This module will preload all compiled XSP files that reside in a con-
figurable directory. This is good for live sites, as the memory for
this XSP code will be shared among child processes and XSP.pm doesn't
need to reparse or re-eval your code at request time.
You must put compiled XSP files into the given directory. Use AxTra-
ceIntermediate to have them saved to disk, and copy any *.XSP file you
want into the preload dir.
Warning: Do not, never, ever set AxTraceIntermediate to the same value
as AxXSPPreloadDir. First of all, this module tries to load all files
in the preload dir, and most files generated by AxTraceIntermediate are
not preloadable, only those ending in .XSP. More importantly, regener-
ating preloaded files automatically opens a whole lot of security
risks.
The preloaded code is loaded while apache is still running as root. So
make absolutely sure you trust these files. You should only load files
you generated yourself. On a sidenote, similar systems like HTML::Mason
have this problem, too, so don't be afraid - but be careful.
AUTHOR
Jrg Walter <jwalt@cpan.org>
LICENSE
This module is available under the same terms as AxKit itself.
perl v5.8.82005Apache::AxKit::Language::XSP::Preload(3)