Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Apache::StatINC reload explaination required

by samurai (Monk)
on Sep 04, 2002 at 13:31 UTC ( [id://195070]=note: print w/replies, xml ) Need Help??


in reply to Apache::StatINC reload explaination required

I can't exactly explain what happens with StatINC, for I have always used Apache::Reload. I believe it gives you more control. I would suggest using Apache::Reload as a replacement for Apache::StatINC, it may solve your problem. Just a suggestion.

--
perl: code of the samurai

  • Comment on Re: Apache::StatINC reload explaination required

Replies are listed 'Best First'.
Re: Re: Apache::StatINC reload explaination required
by stevenc (Novice) on Sep 04, 2002 at 15:25 UTC
    Is Module2 in your %INC path, or have you modified %INC in Module1 in order that you can load Module2?

    Apache::StatINC checks the last modified time of each module in your %INC hash at the initialisation phase. If the module isn't there or hasn't changed it wont be reloaded. If you're loading Module2 from outside your %INC in Module1 you should modify your startup.pl so that directory is included.

    Let us know how you get on.

    Steve.
      Module2 is in the same directory as Module1. As you can see from the error.log StatINC correctly identifies the module as requiring a reload, but the reload does not take effect until the calling module has been 'touched' and therefore reloaded. I looked at the code for Apache::Reload and as far as I could tell the only relevent difference was that the reload was done directly rather than through an eval. I changed my local StatINC to remove the eval and tried again to no avail.

      rdfield

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found