Page 1 of 1
Question about include ...
Posted: Thu Jan 18, 2007 5:06 pm
by neophyte
Does php retain frequently accessed files in memory when the file is included (include(), include_once(), require(), require_once()) or is it flushed at the end of execution? I'm not talking about including the same file twice during a single execution. I'm saying page executes, file x is included, execution completes -- is file x pulled raw from the file system again on the next execution or is it pulled from memory/cache? If so is there a performance difference?
Posted: Thu Jan 18, 2007 5:17 pm
by feyd
Stateless.
It remembers nothing of the previous runs.
Posted: Thu Jan 18, 2007 5:21 pm
by neophyte
That's what I thought....
Do accelerator's store that stuff as byte code?
Posted: Thu Jan 18, 2007 5:21 pm
by Kieran Huggins
maybe asking in the zend forums would make more sense... seems like a plumbing question!
Posted: Thu Jan 18, 2007 5:29 pm
by neophyte
There are other accelerators besides Zend...
Posted: Thu Jan 18, 2007 5:45 pm
by Kieran Huggins
Seems to me that the engine itself might be responsible for some caching...
Posted: Thu Jan 18, 2007 6:24 pm
by Ollie Saunders
neophyte wrote:There are other accelerators besides Zend...
Yep APC, APD, eAccelerator to name a few.