Page 1 of 1

PHP as CGI and PHP op-code cacher (APC, Eaccelerator,Xcache)

Posted: Sun Apr 06, 2008 9:39 am
by orware
Phew,

Now with my other issue closed I wanted to bring up another topic which is hard to find good (conclusive) data on: Does running PHP as CGI (either using suphp or FastCGI) and a PHP op-code cacher such as APC, EAccelerator, or Xcache cancel each other out?

From what I've read it seems like running PHP as CGI removes almost all of the benefits of op-code caching because the files that would be cached in memory are deleted immediately after the request is completed, disallowing any of the caching to take place.

Those statements I've read however appear in somewhat old articles/threads in most cases and I don't know if this is something that possibly has a workaround or if PHP as CGI will just never be able to take advantage of op-code caching.

Thanks for your input :-),

Omar

Posted: Sun Apr 06, 2008 5:16 pm
by scott
Ive never used php as a cgi in a production environment, I suspect that caching with them does not work.