|XP is just a number|
Modperl::PerlRun Reload modulesby mkirank (Chaplain)
|on Aug 03, 2009 at 22:08 UTC||Need Help??|
mkirank has asked for the
wisdom of the Perl Monks concerning the following question:
I am working on migrating some legacy code from cgi to run under Modperl::Perlrun. Perlrun reloads the cgi scripts for each requests but the perl modules are still cached. We ran into an issue wherein there were some modules that created closures and since these modules were cached we could not run them under modperl::perlrun.
In the long run we would like to clean up these modules , for now we want them to run under Perlrun without making any change to the modules
I looked around to see if there was a way to reload modules on each request but did not come across any way to do this.
I looked at the way Apache::Reload reloads modules and came up with a way that seems to be reload the module each time .
Am I missing something here or Is there a better way to reload the required modules on each request under PerlRun