1 installer.module installer_clear_update_disk_cache()

Clears the temporary files and directories based on file age from disk.


core/modules/installer/installer.module, line 324
Handles installation and updates of contributed projects.


function installer_clear_update_disk_cache() {
  // List of update module cache directories. Do not create the directories if
  // they do not exist.
  $directories = array(

  // Search for files and directories in base folder only without recursion.
  foreach ($directories as $directory) {
    file_scan_directory($directory, '/.*/', array('callback' => 'installer_delete_file_if_stale', 'recurse' => FALSE));