Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Developers need to be able to determine whether their code is being run by a user or during cron. Potential use cases are error logging/notification, node access permissions, calculation iterations, and probably many more. Here is a specific need in Domain Access: #1851400: Node grants are incorrect during cron runs potentially causing a fatal exception in Entity->save().
This patch creates a global in bootstrap.inc, then sets it to TRUE during the cron runs.
Comment | File | Size | Author |
---|---|---|---|
drupal-add-run-cron-flag-0.patch | 2.15 KB | 13rac1 | |
Comments