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.

Published
Categorized as Code Tagged ,
Jeremy's profile photo: a selfie taken while walking through Berlin.

Jeremy Felt posted this piece of content on the internet.

Leave a Reply

Your email address will not be published.

The only requirement for your mention to be recognized is a link to this post in your post's content. You can update or delete your post and then re-submit the URL in the form to update or remove your response from this page.

Learn more about Webmentions.