Best method for server-managed WP-cron job? wget or others
- This topic is empty.
-
AuthorPosts
-
Helen
GuestI see a lot of options, which is the best
what is SlickStack using and why did you choose it
Henry
GuestThis method is strange
cd /home/username/public_html/crunchify; php -q wp-cron.php
they will
cd
to directory and then usephp
instead of full path? mostly I will see the full path recommended like:*/10 * * * * /usr/bin/php /somewhere/www/cronjob.php
Marilyn
GuestAnd other trend is telling people to use
wget
method: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.
Bobby
Guestsorry what are these for, should I be doing this on my site
Douglas
GuestI don’t know why so many blogs and web hosts recommend
wget
method, maybe for shared hosting and they cannot access the PHP absolute path? -
AuthorPosts