Best method for server-managed WP-cron job? wget or others
- This topic is empty.
I see a lot of options, which is the best
what is SlickStack using and why did you choose itHenryGuest
This method is strange
cd /home/username/public_html/crunchify; php -q wp-cron.php
cdto directory and then use
phpinstead of full path? mostly I will see the full path recommended like:
*/10 * * * * /usr/bin/php /somewhere/www/cronjob.phpMarilynGuest
And other trend is telling people to use
How to Disable wp-cron in WordPress (and Use a Real Cron Job Instead)
wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron
What is this “?doing_wp_cron” added to the URLs
This is added to the URLs to make sure WP Cron is actually ran, and check if there are any pending tasks.
By default, WP Cron is actually ran for every request to WordPress. However, this check can be disabled. This is why ?doing_wp_cron is sometimes added by plugins or WordPress itself as well.BobbyGuest
sorry what are these for, should I be doing this on my siteDouglasGuest
I don’t know why so many blogs and web hosts recommend
wgetmethod, maybe for shared hosting and they cannot access the PHP absolute path?