Community Documentation

Set up cron

Last updated April 19, 2011. Created by laura s on April 25, 2008.
Edited by arianek, jhodgdon, add1sun, LeeHunter. Log in to edit this page.

Configuring cron is an extremely important task in your Drupal website setup. Search module's indexing of your website's content, Aggregator module's retrieval of feeds, Ping module's notification of other sites of updates, and System module's routine maintenance tasks, such as pruning of logs, all depend on a properly configured cron job.

What is a cron job?

Many Drupal modules have tasks that have to take place from time to time. Think of cron as the tolling of a bell, letting Drupal know that it should perform the appropriate tasks.

The actual "cron job" is a time-triggered action that is usually (and most efficiently) performed by your website's hosting server, but can also be configured by a remote service or even from your own desktop.

For your Drupal site, what actually happens is that the cron job triggers an invisible visit to the site's cron.php file (http://www.example.com/cron.php) which, in turn, executes tasks on behalf of installed modules.

Triggering Drupal cron without a cron job

With the inclusion of "Poor man's cron" in the Drupal 7 core, it is no longer necessary to set up a cron job on your web server. Instead, you can configure the frequency with which cron is run on admin/config/system/cron (Administration > Configuration > System > Cron).

In Drupal 6, you can do the same thing by installing the contributed Poormanscron module.

Comments

I use my Buffalo WHR-HP-G54 with tomato 1.27 firmware to trigger cron on my drupal websites. I made a short tutorial which you can find on my website

http://www.adamkowalewski.com/cron-job-drupal-6.html

cya
Adam

Nice tip! I use a WRT54GL

Nice tip! I use a WRT54GL with the Tomato firmware, and this is an awesome tip for my local dev site crons, thanks!

A third party cron trigger

If you want to use a third party cron trigger, you may try http://www.easycron.com.

There is Drupal module "EasyCron" (http://drupal.org/project/EasyCron) which makes configuring the cron job easier for you.

nobody click here