Disable WP-Cron and use real CRON JOB

Method: Use a real cron job instead of the default WordPress WP-Cron (for better performance and reliability).

ALWAYS use a real cron job instead of WP-cron.


STEP #1 – disable WP-cron from your wp-config.php file

  • Open up wp-config.php
  • Add define( 'DISABLE_WP_CRON', true); anywhere above the line that says, “That’s all, stop editing! Happy blogging.”

STEP #2 – create a cron job from your webhosting control panel

  • Log into your webhosting control panel (cPanel, etc) and find the Cron Jobs function.
  • Add this line and set it to 5 min intervals wget -q -O - https://domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 (change the domain to yours)

Refer to https://wpjohnny.com/disable-wp-cron-use-real-cron-job/