Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Use it for questions about performing routine and other maintenance tasks in Drupal.

In Drupal, setting cron tasks means setting up periodic tasks for housekeeping activities, which can include:

  • Indexing new content
  • Cleaning out expired data from caches
  • Taking database backups
  • Updating content from RSS feeds.

For a module, adding maintenance tasks means implementing hook_cron(), which is the hook invoked by the Drupal cron system when executing cron tasks.