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 server, but if
you do use it on production, you definitely can't use it on modules
that keep global data you don't want cleared.
That's what I feared/expected.
Does anyone know of a way to force mp to run certain blocks on a
package reload?
This is just for my dev server... so its not that important. It
would just be less aggravation on my part.
- The package hash is cleared on reload
- The package hash is populated by other files being compiled and a
register function being called
ideally it would be something like:
on_reload {
reload_these( @namespaces );
}
i think this is currently unsupported, so i'm not hoping for
anything. just worth asking.