Sign in to follow this  
Cannor

Calling wp-cron.php using a real cron job - wget or curl?

Recommended Posts

Hi everyone.

 

Recently, my wp-cron.php mysteriously stopped working, and after a bit of digging I found this was the cause of all the "Missed Schedule" errors I was getting for scheduled posts in WordPress.

 

I found how to set up a manual cron in CPanel using wget to call wp-cron.php every X minutes, although I've also seen a method that uses curl. Is one better for use with HawkHost than the other, or doesn't it matter?

 

Cheers!

 

Share this post


Link to post
Share on other sites

Hi everyone.

 

Recently, my wp-cron.php mysteriously stopped working, and after a bit of digging I found this was the cause of all the "Missed Schedule" errors I was getting for scheduled posts in WordPress.

 

I found how to set up a manual cron in CPanel using wget to call wp-cron.php every X minutes, although I've also seen a method that uses curl. Is one better for use with HawkHost than the other, or doesn't it matter?

 

Cheers!

 

You can use either they achieve the same thing. One thing to note is make sure you pipe the stuff to /dev/null otherwise every time your cron runs it'll download the file to your /home directory.

 

 

wget http://www.yourdomain.com/wp-cron.php -O /dev/null

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this