You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate and remove cron.php in favour of occ system:cron and the cron route #41914
We've been telling admins to use occ system:cron for years, but the product still points at cron.php:
core/js/backgroundjobs.js:24 calls $.get(OC.webroot+'/cron.php') on every page load in AJAX mode, which is the default.
settings/templates/panels/admin/backgroundjobs.php:49 and :57 tell admins to call cron.php for both webcron and system cron (the strings are translated in about 25 l10n files).
Existing webcron registrations and crontab lines (php -f …/cron.php) in the wild, in docs and Docker images.
Deleting the file now would silently stop background jobs on AJAX-mode installs and on every legacy webcron or crontab setup.
Proposed path
Next minor (non-breaking):
Point backgroundjobs.js at the core.Cron.run route instead of /cron.php.
Reword the admin panel: system cron → occ system:cron, webcron → the route URL.
Check the docs and our Docker images for cron.php crontab lines and switch them to occ.
Make the CLI branch of cron.php log and print a deprecation warning.
Next major (breaking):
CLI branch of cron.php exits non-zero with "use occ system:cron" instead of running jobs.
Keep the web redirect for one more major, then remove cron.php.
Activity