You are here

function taxonomy_xml_flush_file_cache in Taxonomy import/export via XML 6.2

Same name and namespace in other branches
  1. 7 taxonomy_xml.module \taxonomy_xml_flush_file_cache()

Deletes ALL cached files. Accessed in the 'advanced' section of the import form.

1 string reference to 'taxonomy_xml_flush_file_cache'
taxonomy_xml_import_form in ./taxonomy_xml.module
Builds the import form.

File

./taxonomy_xml.module, line 1870
This module makes it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_flush_file_cache() {
  $cachedir = file_directory_path() . '/url_cache';
  $file_list = file_scan_directory($cachedir, '.*');
  foreach ($file_list as $file_info) {
    unlink($file_info->filename);
  }
  return "Deleted all files within {$cachedir}";
}