Changeset 270

Show
Ignore:
Timestamp:
02/15/07 15:15:03 (1 year ago)
Author:
mikey
Message:

clear cache before processing: leaves files to check after one run

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docroot/xml.php

    r269 r270  
    1111    public static function main() 
    1212    { 
     13        $directory = new DirectoryIterator(stubConfig::getCachePath() . '/xml'); 
     14        foreach ($directory as $file) { 
     15            if ($file->isDot() == true) { 
     16                continue; 
     17            } 
     18             
     19            unlink($file->getPathname()); 
     20        } 
    1321        $request   = stubBaseRequest::getInstance('Web'); 
    1422        $session   = stubBaseSession::getInstance('PHP', 'stubSID'); 
     
    2028        $postInterceptor->postProcess(); 
    2129        $response->send(); 
    22         $directory = new DirectoryIterator(stubConfig::getCachePath() . '/xml'); 
    23         foreach ($directory as $file) { 
    24             if ($file->isDot() == true) { 
    25                 continue; 
    26             } 
    27              
    28             unlink($file->getPathname()); 
    29         } 
    3030    } 
    3131}