Re: Own webserver, with PHP plus opcache/similar?
| From: | Ryan McCue | Date: | Wed, 11 Jun 2014 13:03:34 +0000 |
| Subject: | Re: Own webserver, with PHP plus opcache/similar? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74848@lists.php.net to get a copy of this message | ||
On 2014-06-11 13:03, Kevin Ingwersen wrote:
But what I was really interested in, is how to make PHP use previously ran scripts. Like I run them once, and part of it, like classes and such, stay in memory, instead of having to „recompile“ the script. I thought this is doen using OPcache… Any way I can take advantage of somethin glike this?Automattic (WordPress.com) has a project called Prefork: https://github.com/Automattic/prefork May be worth looking in to. I'm not entirely sure on the specifics of how it handles the spawning and such, but I do believe it's at least partially in use on WP.com. Thanks, Ryan