diff --git a/includes/common.inc b/includes/common.inc index 477ecc0..fdd9602 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5255,8 +5255,6 @@ function drupal_cron_run() { foreach ($queues as $queue_name => $info) { DrupalQueue::get($queue_name)->createQueue(); } - // Register shutdown callback. - drupal_register_shutdown_function('drupal_cron_cleanup'); // Iterate through the modules calling their cron handlers (if any): foreach (module_implements('cron') as $module) { @@ -5308,10 +5306,10 @@ function drupal_cron_run() { } /** - * Shutdown function: Performs cron cleanup. + * DEPRECATED: Shutdown function: Performs cron cleanup. * - * @see drupal_cron_run() - * @see drupal_register_shutdown_function() + * @deprecated + * @see more details at https://www.drupal.org/node/805702. */ function drupal_cron_cleanup() { // See if the semaphore is still locked.