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
Kevin
2010-08-23 13:11:09
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
2010-08-23 13:14:59
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
2010-08-23 13:25:58