Tag Archives: wp-cron

How to Disable wp-cron Running in the Background

To keep your blog running smoothly, WordPress often needs to schedule tasks to run at certain times, or at some point in the future. Examples include scheduling posts for publication at a future date, generating backups and newsletters at regular intervals.

In order to make this happen, WordPress has an internal feature called wp-cron. In order to make WordPress easy to install, a nasty hack is used to execute wp-cron every time a visitor hits your site, or you do anything on the dashboard.

There are several problems with this:

  • It increases the load on your server, especially if you have a lot of visitors

  • It's erratic, especially if you have few visitors or use a caching plugin like W3-Total-Cache

  • There's a bug that can cause it to execute multiple times in parallel, leading to annoying problems such as duplicate MailPress newsletters
  • It's a hack

Notice that problems occur … Continue reading…

Posted in Problems | Tagged | 27 Comments