Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 022010

Disable APC auto recompile modified PHP files


If you want extra performance boost for PHP/APC, you can tell APC not to auto recompile modified PHP files even they have changed. This can save APC for not to check the modification time of your script on every request.

To do so, edit your php.ini, and add

apc.apc.stat = 0

Restart your web server (e.g. Apache) to take effect.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>