I’ve recently been looking at how best to run wp-cron manually from the system to avoid a performance hit when a visitor loads the site. मैंने अब तक पाया है 3 different ways to run this. और भी हो सकते हैं.
I make no comment on the advantages or disadvantages of each yet, because I simply don’t know well enough to be in a position to make recommendations…
wget -q -O - https://yourdomain.tld / WP-cron.php?doing_wp_cron >/dev/null 2>&1
wp cron event run --due-now --path='/path/to/wordpress/'
php /path/to/wordpress/wp-cron.php >/dev/null 2>&1
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”