server – Is doing_wp_cron a necessary query string when scheduling cron.php as a cron job?

Question

I have seen various ways to schedule the WordPress cron so that it is triggered by the server. Some will run the php file directory from the crontab and others will use a wget and reference the url. I have noticed some sites suggesting this:

wget -q -O - https://domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

What is the difference between this and just using

wget -q -O - https://domain.com/wp-cron.php >/dev/null 2>&1

0
Mark Hunter 5 months 2022-03-08T13:22:07-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse