function _make_enable_cache

8.0.x make.drush.inc _make_enable_cache()
6.x make.drush.inc _make_enable_cache()
7.x make.drush.inc _make_enable_cache()
master make.drush.inc _make_enable_cache()

Enables caching if not explicitly disabled.

Return value

bool The previous value of the 'cache' option.

1 call to _make_enable_cache()
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.

File

commands/make/make.drush.inc, line 757
Drush Make commands.

Code

function _make_enable_cache() {
  $cache_before = drush_get_option('cache');
  if (!drush_get_option('no-cache', FALSE)) {
    drush_set_option('cache', TRUE);
  }
  return $cache_before;
}