You are here

function drush_cache_path in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 acsf_init/lib/cloud_hooks/common/post-db-copy/000-acquia_required_scrub.php \drush_cache_path()

Returns Drush cache location based on site, environment and domain.

Parameters

string $site: Site name.

string $env: Site environment.

string $domain: Site domain.

Return value

string Drush cache location.

1 call to drush_cache_path()
drush_exec in acsf_init/lib/cloud_hooks/common/post-db-copy/000-acquia_required_scrub.php
Runs Drush command. Exits with error code if something fails.

File

acsf_init/lib/cloud_hooks/common/post-db-copy/000-acquia_required_scrub.php, line 54
Scrubs a site after its database has been copied.

Code

function drush_cache_path(string $site, string $env, string $domain) {
  return sprintf('/mnt/tmp/%s.%s/drush_tmp_cache/%s', $site, $env, md5($domain));
}