Re: [PHP-LANG] General Speed and Server Caching
[email protected] (Rasmus Lerdorf) Sat, 1 Mar 2003 19:50:18 -0800 (PST)
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 1 Mar 2003, Joshua Groboski wrote: > I am advocating a move to PHP for our corporate website as well as our > intranet. My boss, has raised an issue to which I've found no useful > response. His question was, can PHP scripts be cached in the server similar > to the way JSPs or ISAPI dlls are handled. For instance, I have a library > of functions I have already written. His argument is that the library must > be re-interpretted each time the script is hit. Is there any way to avoid > that? That's what all the various opcode caches do. They cache the parsed opcodes in shared memory, typically. However, on mediocre hardware, even without opcode caching on moderately complex scripts you can easily do over 5 million requests per day. Please send general PHP queries to [email protected] in the future. -Rasmus