[development] How to make Require_once refreshable

larry at garfieldtech.com larry at garfieldtech.com
Mon Oct 5 15:31:12 UTC 2009


By default, PHP will reload files on disk every page request.  If it's 
not, then it's doing something weird.

Possible causes:

1) You're running APC in no-stat mode.  You need to restart apache for 
it to flush its cache.  This is not a good mode to run a dev server for 
the reason you're seeing.

2) You're running APC not in no-stat mode, but it's acting buggy and is 
not stating anyway.  Restart apache or disable APC.

3) You're actually editing the wrong file.  I have lots of copies of 
Drupal floating around my web directories.  It happens at times. :-)

4) The code you think is running is not actually running, so your debug 
statements are never reached.  This has happened to me, too.

5) Your OS or Apache are just being buggy.  Switch to a less buggy OS or 
Apache.

--Larry Garfield

Nancy Wichmann wrote:
> I was trying to track down an issue I am having with the node module's 
> content_types.inc so I stuck in some messages. Unfortunately, the menu 
> system uses require_once to load these files, so my changes are not 
> working. I really don't want to have to reboot every time I do 
> something. Is there any quicker way to get PHP to reload these files?
>  
> Nancy E. Wichmann, PMP
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. 
> King, Jr.
>  


More information about the development mailing list