Cap nhat 1: Ngay 05 thang 08 nam 2008
Cron Jobs, hieu nom na, la cac nhiem vu duoc lien tuc thuc hien sau mot khoang thoi gian xac dinh. Drupal su dung cron jobs de thuc hien mot so nhiem vu: danh chi muc noi dung, lay tin tuc moi tu cac nguon RSS, kiem tra cac phien ban cap nhat hop le, gui email, ...
Tuy theo cau hinh cua nguoi quan tri he thong.
Co the, ban co the khai bao kich ban ma ban muon thuc hien trong khi cron chay, thong qua viec su dung hook_cron.
Doi voi cPanel, Cach thiet lap de cron tu dong chay sau mot thoi gian nhat dinh:
- Dang nhap vao cPanel
- Vao trang Cron Jobs
- Chon Standard Mode
- Doi voi tung entry, dinh nghia khoang cach thoi gian cron entry duoc thuc hien, o field command to run nhap vao GET http://path_to_you_drupal_site/cron.php > /dev/null
GET lam gi vay?Toi khong ro, nhung thu xem doan sau:
hongtt@hongtt-desktop:~$ GET Usage: GET [-options] <url>... -m <method> use method for the request (default is 'GET') -f make request even if GET believes method is illegal -c <conttype> use this content-type for POST, PUT, CHECKIN -a Use text mode for content I/O -p <proxyurl> use this as a proxy -P don't load proxy settings from environment -H <header> send this HTTP header (you can specify several) -C <username>:<password> provide credentials for basic authentication -u Display method and URL before any response -U Display request headers (implies -u) -s Display response status code -S Display response status chain -e Display response headers -d Do not display content -o <format> Process HTML content in various ways -v Show program version -h Print this message -x Extra debugging output
Con. Doi voi Server khong ho tro cronjob, co the su dung module poorcronjobs.
Viec thuc hien cron job la can thiet doi voi cac site Drupal, it nhat, khi cron job khong duoc thuc hien, noi dung cua site khong duoc index => chuc nang tim kiem khong hoat dong.
The Hong,