NAME

Apache::Reload - Reload this module on each request (if modified)

SYNOPSIS

In httpd.conf:

PerlInitHandler Apache::StatINC

Then your module:

package My::Apache::Module;

use Apache::Reload;

sub handler { ... }

1;

DESCRIPTION

This module is an adaptation of Randall Schwartz's Stonehenge::Reload module that attempts to be a little more intuitive and makes the usage easier. Like Apache::StatINC it must be installed as an Init Handler, but unlike StatINC it must also be used by the module you want reloading.

If you want to temporarily turn off reloading of a module (which is slightly problematic since it won't happen until the next hit on the same server because of the way this thing works) you can use the 'off' option:

use Apache::Reload 'off';

Obviously you wouldn't do that generally, but it can be useful if you intend to make large changes to a particular module.

AUTHOR

Matt Sergeant, matt@sergeant.org

SEE ALSO

Apache::StatINC, Stonehenge::Reload