-
New Feature
-
Resolution: Fixed
-
Minor
-
3.6.5
-
MOODLE_36_STABLE
-
MOODLE_38_STABLE
-
MDL-66570-master -
For Moodle users on shared hosting, they may only have the option of using a web-based cron automation service (e.g., cron-jobs.org) to run cron jobs. However, these services (specifically cron-jobs.org) consider > 1KB of returned data as a script failure and will suspend the schedule after 15 failures.
cron.php already takes an optional_param of 'password' so it would be helpful if we could add another optional_param like 'restrictoutput' which would limit the output to some trivial amount (or eliminate the output altogether).
Steps to reproduce:
- Go to cron-jobs.org and schedule it to call /admin/cron.php every 1 minute
- Wait 15 minutes
- Go back to cron-jobs.org and see the schedule has been disabled (after 15 times of getting back more than 1KB of data)