[development] How to make Require_once refreshable
Nancy Wichmann
nan_wich at bellsouth.net
Mon Oct 5 15:46:01 UTC 2009
I don't have APC. It is PHP 5.2.5 and Apache 2.2.6.
So I guess that means I'm editing the wrong file. Sigh...
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
Jr.
-----Original Message-----
From: development-bounces at drupal.org
[mailto:development-bounces at drupal.org]On Behalf Of
larry at garfieldtech.com
Sent: Monday, October 05, 2009 11:31 AM
To: development at drupal.org
Subject: Re: [development] How to make Require_once refreshable
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.
>
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.420 / Virus Database: 270.14.3/2412 - Release Date: 10/05/09
06:19:00
More information about the development
mailing list