Cron jobs won’t run on staging site
-
We have a crontab setup that triggers
wp-cron.php
regularly on our server, but on the staging site it doesn’t cause the cron jobs to run even when configured identically but for the file paths, nor does visiting the stagingwp-cron.php
in our browser (either logged in or out.)(Note: absolute paths redacted with
[...]
)*/1 * * * * cd [...]htdocs; php [...]htdocs/wp-cron.php > /dev/null 2>&1 # PROD - Works
*/1 * * * * cd [...]htdocs/july2022-staging; php [...]htdocs/july2022-staging/wp-cron.php > /dev/null 2>&1 # Staging - Does nothing
I’ve tried with and without this in our staging
wp-config.php
:define('DISABLE_WP_CRON', true);
What could be the issue? We need to test cron on our staging site and the docs suggest it isn’t disabled or affected by WP-Staging, but that doesn’t seem to be the case for us.
Thanks for the great plugin!
- The topic ‘Cron jobs won’t run on staging site’ is closed to new replies.