tags:

views:

46

answers:

1
+3  Q: 

Cron configuration

How to set cron to clean drupal cache every 2 days ???

+2  A: 

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

Kevin
I know that but i don't know the command for that ex. 0 * * * "MON,WED,FRI" wget -O - -q -t 1 http://www.mysite.com/clear_cache but i think it can't be done over url
Kelly
It's not clear_cache, you call cron.php which runs all the hook_cron functions (including clearing all cache). Ask your hosting provider to input that command above. cron.php is the script that sets in motion Drupal calling all hook_cron implementations. http://api.drupal.org/api/function/hook_cron
Kevin

related questions