Knowledgebase

How to Replace WP-Cron with a Real Linux System Cron Job Print

  • 0

Stop WordPress from triggering slow background tasks on every visitor page load.

Step-by-Step Instructions

  1. Add DISABLE_WP_CRON to wp-config.php.
  2. Add a 5-minute system cron job in cPanel or crontab.
# In wp-config.php:
define('DISABLE_WP_CRON', true);
# In crontab:
*/5 * * * * curl -s https://yourdomain.pk/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Pro Tip: This eliminates random CPU spikes on busy WooCommerce stores.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back