News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brandon Savage's Blog:
To stat() Or Not To stat()?
July 31, 2009 @ 08:29:10

In this new post to his blog about the APC caching tool that can speed up your PHP applications dramatically when used correctly. Brandon recommends a tweak that could help it go even faster.

The very first thing that APC does when it's turned on is begin caching the opcode output from all of your PHP files. [...] Also by default, APC checks the file on the file system to determine if it has changed since the last time APC cached the opcodes. When APC does this, it executes a file-system-level stat() call, which in the scheme of the calls performed is expensive.

There's a setting in your php.ini to take care of this (you might have to add it in) - apc.stat - that can just be set to "FALSE". There are some drawbacks he points out, though like restarts required for clearing the cache and the fact that, no matter what you do, bad code will always run badly.

0 comments voice your opinion now!
stat apc cache phpini


blog comments powered by Disqus

Similar Posts

Gopal Vijayaraghavan's Blog: APC 3.1.2 Released!

Till Klampaeckel's Blog: APC: get a key's expiration time

SDA Asia: Yahoo Helping Zend with PHP 6, says Andi Gutmans

Matt Curry's Blog: 8 Ways to Speed Up CakePHP Apps

DZone.com: What you must know about PHP errors...


Community Events





Don't see your event here?
Let us know!


framework voicesoftheelephpant introduction series package deployment symfony library install community release zendserver unittest bugfix interview laravel language podcast opinion api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework