I’m running a WordPress/WooCommerce. I recently switched over to APC + Varnish over W3TC + Memcached. I’m using the APC Backend dropin plugin for WordPress.
I know that Varnish cache needs to be cleared whenever a post or comment is updated/created. I’m using a plugin that does the clearing for me. My question is, does APC cache also need to be cleared every time a new comment is made, a post is edited, or a new post is created? If so, how can I do it? I know there is a PHP function to clear ALL cache, but is it possible to only clear the cache of a specific page?
Thanks!
No, APC cache has to be cleared only after PHP files modification.
Ad you shouldn’t clear full cache, use apc_compile_file() only for files that you uploaded/modified (http://uk.php.net/manual/en/function.apc-compile-file.php)