Cron Configuration

How to install cron to clear drupal cache every 2 days?

+4
source share
2 answers

You should install this on your server, not from Drupal.

Cron example:

minute hour day month day-week command-line-to-execute

0 * * * "MON,WED,FRI" wget -O - -q -t 1 http://www.example.com/cron.php 

http://drupal.org/cron

http://en.wikipedia.org/wiki/CRON_expression

+2
source

to create a crontab record for this so that it runs every 2 days, only once a day at 01:00: (Using step values ​​in combination with ranges in crontab)

 0 1 1-31/2 * * wget -O - -q -t 1 http://yoursite.com/cron.php 

See:

man 5 crontab

http://drupal.org/node/23714

0
source

All Articles