简体   繁体   中英

Do I need to clear APC cache after new post?

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 )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM