Cron.php in database?

Cron.php in database?

by Kate James -
Number of replies: 2

Hello everyone,

My cron.php has not been launched since the start of my e-learning platform...The previous developer has not set this script to run. Now, I want to turn it on. I'm just afraid that some old notifications will be sent to users. Is there one table in the database that I need to clear?

Average of ratings: -
In reply to Kate James

Re: Cron.php in database?

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

In this situation I add $CFG->noemailever = true; to config.php. This prevents any outstanding email notifications being sent. Then when the cron has completed successfully (for example after one hour) I remove this so any subsequent email notifications are sent.

There are some notes on this setting in the example config-dist.php:

// When working with production data on test servers, no emails or other messages 
// should ever be send to real users
$CFG->noemailever = true;    // NOT FOR PRODUCTION SERVERS!
Average of ratings: Useful (3)
In reply to Leon Stringer

Odp: Re: Cron.php in database?

by Kate James -
ooo @Leon Stringer good idea, I didn't think about it smile