Question

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!

Was it helpful?

Solution

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)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top