I'm losing variables under apache2:: reload
below is a summation of my problem. when a2::reload recompiles off
of a changed sub, i lose the entire WATCH_ME var.
i think this might happen because of the begin blocks. and the way
plugins register. i thought it wise to bring this up t
On Nov 18, 2007 7:30 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> below is a summation of my problem. when a2::reload recompiles off
> of a changed sub, i lose the entire WATCH_ME var.
What would this code do if it was working? %WATCH_ME doesn't look
like anything ever gets put into it. Do
On Nov 18, 2007 10:51 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> on my dev server, the real WATCH_ME var has about 96 registered
> modules in it. everything works perfect until i reload.
Okay, the copy/paste error just confused me.
In any case, Apache2::Reload wipes all package variables.
WATCH_ME is populated by subclasses that register on load.
on my dev server, the real WATCH_ME var has about 96 registered
modules in it. everything works perfect until i reload.
package myapp::tester::plugin;
our $var= 'hello';
myapp::tester::register_plugin(__PACKAGE__
On Nov 18, 2007, at 11:00 PM, Perrin Harkins wrote:
Okay, the copy/paste error just confused me.
In any case, Apache2::Reload wipes all package variables. It uses
ModPerl::Util::unload_package. So, this is the intended behavior. My
general advice is to only used Apache2::Reload on a dev serv
On Nov 19, 2007, at 12:51 PM, Jonathan Vanasco wrote:
ideally it would be something like:
on_reload {
reload_these( @namespaces );
}
That should be easy enough. Just touch all of those files and they
will all be reloaded.
- Perrin