Disabling wp-cron scheduled by wordpress

The purpose of this post is to give you a step by step approach to replace wordpress scheduling wp-cron by your own scheduler.

1) if you are on a multi-site wordpress install, copy following file wp-ms-cron.php (458) at the root of your blog.

2) at the root of your blog, open wp-config.php and after line :

define('WP_DEBUG', false);

add the line :

define('DISABLE_WP_CRON', true);

3) open your favorite scheduler (could be (a) access crontab with your CPanel, (b) direct access to crontab or (c) using external services such as webcron.org)

the file to execute (every 5, 10 minutes or more …) at the root of your blog is :
on a monosite install, wp-cron.php
on a multisite install, wp-ms-cron.php

4) in MailPress settings make sure that all batch options are still set to wp_cron.

This entry was posted in News. Bookmark the permalink.

1 Response to Disabling wp-cron scheduled by wordpress

  1. Chibani says:

    Thanks for this trick.
    I’ve just made a WordPress extension for that purpose : https://github.com/chibani/wp_multisite_cron

Comments are closed.