Re: 'use base' and mod_perl

"Thomas den Braber" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl,gmane.comp.java.ofbiz.devel
Message-ID <[email protected]>
Mike,

> Do you have any idea why this is? 
> Actually I ran into this issue as well; see
> http://bugs.otrs.org/show_bug.cgi?id=6218#c4
> 

I haven't figured out what causes the problem but have found that if you add:

 $ModPerl::Util::DEFAULT_UNLOAD_METHOD = 'unload_package_xs';

To my startup.pl file, reload works for the "use base 'modulename';"
modules but not always for other modules.

What I do is enable/disable this option depending on the module I am
working on.

Very important that you do not enable the reload option for production
servers. So it is only some extra trouble in development and restarting
your development server every now and then is not a problem.

--
Thomas den Braber
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.