wp-cron

How to resolve “WooCommerce is updating product data in the background” taking longer than expected

If you’re running WooCommerce 3.6 or later (and I truly hope you are), and have a large product catalog, you might have ran into the issue where this admin notice is lingering longer than you think it should. This can cause issues with filters on the front end of a shop being inaccurate or non-functional, as well as the noted sorting and reporting discrepancies. As the message indicates, for this install, we’ve disabled the default WP cron and run a scheduled server cron via wp-cli. This helps offload these sorts of processor intensive tasks from happening when users load your website, but it can sometimes mean queues such as this one get a little backed up. I’ve often found this issue on sites that use bulk editing plugins to make thousands of product updates at …

How to resolve “WooCommerce is updating product data in the background” taking longer than expected Read More »

Monitoring WordPress Cron via heartbeat checks

Part of my onboarding process and performance optimization for new sites is setting up proper server-level scheduled cron jobs using wp-cli. I use Kinsta hosting for clients and internal sites here at Sprucely Designed and, while they have an excellent hosting stack preconfigured out of the box, they don’t disable the stock WP-Cron or configure a system cron to my liking. So, based on Kinsta’s own knowledgebase recommendations, this is one of the first optimizations I make for new sites. First, I disable the default WP Cron, by adding this line to the site’s wp-config.php. On Kinsta hosting, this won’t completely disable the cron because Kinsta has a default server cron setup within crontab that performs a curl request to wp-cron.php?server_triggered_cronjob every 15 minutes. They do this as a backup to the default WP cron …

Monitoring WordPress Cron via heartbeat checks Read More »

NASA Adds Leap Second to Master Clock
Scroll to Top