function drush_directory_cache

8.0.x environment.inc drush_directory_cache($subdir = '')
6.x environment.inc drush_directory_cache($subdir = '')
7.x environment.inc drush_directory_cache($subdir = '')
4.x environment.inc drush_directory_cache()
5.x environment.inc drush_directory_cache($subdir = '')
master environment.inc drush_directory_cache($subdir = '')
2 calls to drush_directory_cache()
drush_download_file in includes/drush.inc
Download a file using wget, curl or file_get_contents, or via download cache.
package_handler_download_project in commands/pm/package_handler/git_drupalorg.inc
Download a project.

File

includes/environment.inc, line 1383
Functions used by drush to query the environment and setting the current configuration.

Code

function drush_directory_cache() {
  if (getenv('CACHE_PREFIX')) {
    return getenv('CACHE_PREFIX') . '/cache';
  }
  elseif ($home = drush_server_home()) {
    return "$home/.drush/cache";
  }
  else {
    return FALSE;
  }
}