문제

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top