brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: wp cron test tells you whether WordPress can start its own cron

WordPress
~/tips/tip-wordpress-cron-test-spawn

wp cron test

Checks whether WP-Cron is switched off or cannot call itself over HTTP.

Scheduled posts that miss their time and backups that never run often have one cause: WordPress cannot trigger its own cron.

wp cron test

When things are fine you get Success: WP-Cron spawning is working as expected. Otherwise it tells you which of three checks failed.

First, it errors when DISABLE_WP_CRON is true. That may be on purpose, if a system cron job calls wp-cron.php. If nobody set up that job, nothing runs at all. Second, it warns when ALTERNATE_WP_CRON is on, an old workaround that is rarely needed now. Third, it makes the same HTTP request to wp-cron.php that WordPress makes on page loads, and warns when the answer is not a 200.

That third check is where most problems hide, I think. A site behind a firewall that cannot reach its own public address, basic auth on a staging site, or a security plugin that blocks wp-cron.php all stop the spawn request. Fix that, or switch to a real cron job.

The test only proves cron can start. Whether a specific event runs is a separate question, and wp cron event list shows what is waiting and when.

Further reading: wp cron test

More WordPress tips wp user application-password create anna backup-script --porcelain define( 'MEDIA_TRASH', true ); wp cli check-update wp theme delete --all wp media image-size All WordPress tips (85) All topics

Link