Changeset 449 for dev/cron

Show
Ignore:
Timestamp:
08/20/09 13:35:03 (12 years ago)
Author:
kovell
Message:

Page cache uses subdirectories to split cache files. clearup cron script has longer expiry times on page and query cache. fetch and import cron scripts have commented code removed.

Location:
dev/cron
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dev/cron/cron_clearup.php

    r448 r449  
    99require_once('common/includes/db.php'); 
    1010 
    11 remove_old(1 * 24, config::get('cache_dir').'/'); 
    12 remove_old(1 * 24, config::get('cache_dir').'/'.KB_SITE.'/'); 
     11remove_old(7 * 24, config::get('cache_dir').'/'); 
     12remove_old(7 * 24, config::get('cache_dir').'/'.KB_SITE.'/', true); 
    1313remove_old(1 * 24, "cache/templates_c/"); 
    1414remove_old(7 * 24, "cache/mails/"); 
  • dev/cron/cron_fetcher.php

    r430 r449  
    1414 
    1515// 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(); 
    1816$KB_HOME = preg_replace('/[\/\\\\]cron$/', '', getcwd()); 
    1917chdir($KB_HOME); 
  • dev/cron/cron_import.php

    r400 r449  
    1313 
    1414// 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") 
    1615$KB_HOME = ereg_replace('[/\\]cron$', '', getcwd()); 
    1716