Apache2::Reload
Regards,
Jie
* Worik Stanton worik.stan...@gmail.com wrote:
Date: Mon, 19 May 2014 13:47:12 +1200
From: Worik Stanton worik.stan...@gmail.com
CC: mod_perl list modperl@perl.apache.org
Subject: Re: Trouble with script execution
User-Agent: Mozilla/5.0 (X11; Linux x86_64
On Sun, May 18, 2014 at 9:47 PM, Worik Stanton worik.stan...@gmail.com wrote:
I am sure I read somewhere that mod_perl monitors scripts and reloads
them if the modification date changes.
You're probably thinking of Apache::Registry/ModPerl::Registry. They
do that with your CGI scripts.
-
I am having a nproblem executing my handler.
The short of it is it is when I make a change to the script I have to
restart the server to get it noticed, and it does not always call the
same code.
The lng of it:
I have a package with a 'handler' function.
It starts...
package Apache::Script;
No, you have to restart the server for code changes to be noticed.
On May 18, 2014 6:48 PM, Worik Stanton worik.stan...@gmail.com wrote:
I am having a nproblem executing my handler.
The short of it is it is when I make a change to the script I have to
restart the server to get it noticed, and
On 19/05/14 11:34, John Dunlap wrote:
No, you have to restart the server for code changes to be noticed.
Does that mean I have to restart my server for every change to a script?
Worik
--
The only true evil is turning people into things
Granny
Yep you need to restart to see your changes.
Believe it or not, that's one of the *nice* things about mod_perl.
Instead of compiling the code during each execution as PERL does when
executed as a purely interpreted language , mod_perl causes each Apache
child process to compile the code
On 19/05/14 12:13, Brad Van Sickle wrote:
Yep you need to restart to see your changes.
I am sure I read somewhere that mod_perl monitors scripts and reloads
them if the modification date changes. But oh well. It definitely
notices sometimes.
cheers
Worik
--
The only true evil is turning
That hasn't been my experience. I always need to restart the server. One of
the challenges with that is that objects can persist in memory between
requests because the perl runtime persists between requests. If the
script changes, how do you apply those changes to objects instances which
already