Re: General Speed and Server Caching
| From: | Rasmus Lerdorf | Date: | Sun, 02 Mar 2003 03:50:18 +0000 |
| Subject: | Re: General Speed and Server Caching | ||
| References: | 1 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-469@lists.php.net to get a copy of this message | ||
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 php-general@lists.php.net in the
future.
-Rasmus