How to disable Crontab in WordPress 3.2


When page load, WordPress will doing cron stuff. This meaning, every page load by visitors, WordPress always checking what task in cron queque. If you curios how cron is working on WordPress, see this :

1
2
3
4
5
6
7
8
9
10
wp-settings.php:
+requires wp-includes/default-filters.php
-contains the action hook to the function wp_cron()

+requires wp-includes/cron.php
-contains functions that perform cron related tasks, including the wp_cron() function
-above functions make http request to wp-cron.php

wp-cron.php:
-actually does the schedule checking and executes anything as needed.

So, to disable cron in WordPress, you should define DISABLE_WP_CRON in wp-config.php.

1
define(‘DISABLE_WP_CRON’, true);

Credit to : http://wordpress.org/support/topic/wp_schedule_event-events-dont-fire


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.