- Timestamp:
- 08/20/09 13:35:03 (12 years ago)
- Location:
- dev/cron
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/cron/cron_clearup.php
r448 r449 9 9 require_once('common/includes/db.php'); 10 10 11 remove_old( 1* 24, config::get('cache_dir').'/');12 remove_old( 1 * 24, config::get('cache_dir').'/'.KB_SITE.'/');11 remove_old(7 * 24, config::get('cache_dir').'/'); 12 remove_old(7 * 24, config::get('cache_dir').'/'.KB_SITE.'/', true); 13 13 remove_old(1 * 24, "cache/templates_c/"); 14 14 remove_old(7 * 24, "cache/mails/"); -
dev/cron/cron_fetcher.php
r430 r449 14 14 15 15 // Has to be run from the KB main directory for nested includes to work 16 //echo "Edit the \$KB_HOME and remove this line and the next\n";17 //die();18 16 $KB_HOME = preg_replace('/[\/\\\\]cron$/', '', getcwd()); 19 17 chdir($KB_HOME); -
dev/cron/cron_import.php
r400 r449 13 13 14 14 // current working directory minus last 5 letters of string ("/cron") 15 //$KB_HOME = substr(getcwd(), 0, strlen(getcwd())-5); // current working directory minus last 5 letters of string ("/cron")16 15 $KB_HOME = ereg_replace('[/\\]cron$', '', getcwd()); 17 16