Hello Facebook for WooCommerce team,
We’re running Facebook for WooCommerce on a high-traffic WordPress + WooCommerce site with a persistent object cache (Memcached via W3 Total Cache).
We’ve noticed that when running any wp-cli command, the plugin consistently logs the following error:
WP HTTP API Error: Not Found – Response code: 404
URL: https://public-api.wordpress.com/rest/v1.1/sites/
After debugging, this appears to come from the set_wc_facebook_svr_flags() logic in facebook-for-woocommerce.php (around line 321), which is intended to run only once and cache the result in a transient.
However, in WP-CLI:
• Persistent object caching is disabled by default
• Transients stored in Memcached are not available
• get_transient( ‘wc_facebook_svr_flags_ds’ ) always returns false
• The WordPress.com API check is therefore executed on every CLI run
Since non-WordPress.com sites correctly return a 404 from that endpoint, this produces noisy and misleading errors during routine CLI operations (cron jobs, deploys, cache clears, etc.), even though nothing is actually wrong.
Open
Last updated: December 22, 2025
0 comments
Log in to comment on this feature request.