开发者

Cron configuration

How to se开发者_如何学Ct cron to clean drupal cache every 2 days?


You have to set this in your server, not from Drupal.

Cron example:

minute hour day month day-of-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


to set up a crontab entry for this to run every 2 days, only once a day at 01:00am : (Using step values in conjunction 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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜