When developing locally with APC enabled, you might be inclined to clear cache forcefully lest you go crazy.

Local development with APC is great if your production environment also takes advantage of object caching. Every once and a while you may even forget that you have it turned on and then you’re trying to figure out why your recent changes aren’t doing anything.

Rather than disable it entirely, only to forget to turn it back on – you can forcefully clear the cache whenever you want:

apc_clear_cache();
apc_clear_cache( 'user' );
apc_clear_cache( 'opcode' );

Happy developer.

Leave a Reply