Changeset 269

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

clear cache after processing

Files:

Legend:

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

    r264 r269  
    2020        $postInterceptor->postProcess(); 
    2121        $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        } 
    2230    } 
    2331}