public function clearCache() {
        $files = glob($this->getConfig('cacheDir') . '/*', GLOB_MARK);
        foreach ($files as $file) {
            unlink($file);
        }
    }
public function clearCache() {
        $files = glob($this->getConfig('cacheDir') . '/*', GLOB_MARK);
        foreach ($files as $file) {
            unlink($file);
        }
    }
public function clearCache ( ) { $ files = glob ( $ this -> getConfig ( 'cacheDir' ) . '/*' , GLOB_MARK ) ; foreach ( $ files as $ file ) { unlink ( $ file ) ; } }
delete all cached files
delete all cached files