Replace WordPress Cron Job with Linux Crontab

If WordPress Cron Job isn’t getting triggered on-time, which is common if the blog does not get a lot of traffic, WordPress cron can be setup to use a real Linux crontab to make it trigger on-time. If you don’t have access to the Linux command line for your server, then ask your webhost to setup this up for you.

In wp-config.php disable WP Cron:

Open a Linux terminal command line window and enter:

Now press the i key to insert a new line and paste the following with your domain name:

Now press the Esc key, and then the keys :wq, and enter, to save your changes.

This will fire the cron every 2 minutes.

One Response to Replace WordPress Cron Job with Linux Crontab

  1. Kaspars March 21, 2014 at 1:22 am #

    A cron job for every two minutes can also be written like this: “*/2 * * * *”.

Leave a Reply

HTML tags are not allowed.

141,694 Spambots Blocked by Simple Comments