I recently added
define(‘ALTERNATE_WP_CRON’, true);
to my wp-config.php file for this and my other two websites (honoringhomer.net and loveyourbelly.com) as instructed. The code in their files currently is
/* Add any custom values between this line and the “stop editing” line. */
define(‘ALTERNATE_WP_CRON’, true);
/* That’s all, stop editing! Happy publishing. */
Whenever I go to the sites, even several times on the same day, the [?i=1&doing_wp_cron=*] comes up after the site’s’ URL. And I get frequent messages about bodyearth.org plug-ins updating.
Is this [&doing_wp_cron=*] suffix to the site’s URL normal and expected? Or is there something else for me to do code-wise?
I’ve kept two files, wp-config-0.php and wp-config-sample.php, in the file manager along with wp-config.php — could they be messing with the process?
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
Yes, that’s normal. Your code is also in the right place.
Our article on WordPress Site Health warnings says that with ALTERNATE_WP_CRON set, WordPress runs scheduled tasks during a visitor’s own page load. Visitors may briefly see ?doing_wp_cron= added to the URL, and the article says this is expected. The same article lists automatic updates and plugin tasks among the things WP-Cron runs. So the plugin update messages you’re getting are probably those tasks running now that they work.
Your wp-config.php matches what the article describes: the line sits above the “That’s all, stop editing!” comment.
The extra wp-config-0.php and wp-config-sample.php files aren’t the cause. WordPress only reads wp-config.php, so those two files do nothing.
Here’s the article, which also covers other Site Health warnings you can ignore:
I can’t tell from your post whether the suffix stays in the address bar for a long time or flashes by. If it stays on screen and the page doesn’t load normally, tell me what you see and I’ll look into it.
Are you saying that you enabled a setting that adds doing_wp_cron to your URL when running WP-Cron, then complaining that doing_wp_cron is being added to your URL?
That’s exactly what ALTERNATE_WP_CRON mode does. And depending on how often WordPress needs to do cron tasks, it may run multiple times per day.
If your website needs WP Cron to function, then this is the best possible option on free hosting.
However, most WordPress sites work fine without WP Cron. Only some plugins (notably WooCommerce) need it to work. So you can consider disabling it if you don’t need it.