Note: This is a developer-level doc. If you are unfamiliar with code/templates, resolving potential conflicts, or custom cron jobs, please seek assistance from a qualified WordPress/WooCommerce developer. We highly recommend Codeable or a Woo Agency Partner. We are unable to provide support for customizations under our Support Policy.
Replacing the standard WP-Cron system with a real cron job on your server can improve the stability and performance of your site. AutomateWoo especially benefits from this since it uses cron heavily and runs many tasks asynchronously to avoid slowing down requests to your site.
Learn more about hooking WP-Cron into the system task scheduler.
Setting the cron interval time
↑ Back to topWhen using AutomateWoo we recommend setting the cron interval time to no more than five (5) minutes:
*/5 * * * *
Use the following command (replacing YOUR_SITE_URL
with your domain):
wget -q -O - http://YOUR_SITE_URL/wp-cron.php >/dev/null 2>&1
After setting up the server cron job you should disable the normal WP-Cron request by adding the following line to your wp-config.php
file:
define('DISABLE_WP_CRON', true);