O'Reilly logo

Drupal: Creating Blogs, Forums, Portals, and Community Websites by David Mercer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cron and Scheduled Tasks

In order to keep the site running smoothly and keep it up to date, there are a variety of chores that need to be performed on a regular basis. For example, we saw earlier in the book that the aggregator module needed to be run on a regular basis so that it could update all its feeds and so forth. The Drupal developers are well aware of all the tasks that need to be handled; so they bundled everything up into one handy script—cron.php.

You need to set the crontab or scheduled task to execute the cron.php script, which is housed in the main folder of your Drupal installation, so that it can perform all the necessary tasks. The cron script basically searches through the site and executes any tasks that apply to modules or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required