Skip to content

Commit

Permalink
Do not force a cache rebuild after a database refresh (#221)
Browse files Browse the repository at this point in the history
A cache rebuild forces a full bootstrap and any new
code that relies on an unenabled module will fail the
build.

Resolves #220
  • Loading branch information
apotek authored Sep 26, 2024
1 parent 24a9354 commit 01507e0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Robo/Plugin/Commands/DevelopmentModeCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,6 @@ public function databaseRefreshTugboat(): ResultData
$resultData->append($taskResult);
$taskResult = $this->taskExec('rm')->args($dbPath)->run();
$resultData->append($taskResult);

if (!$this->drupalVersionIsD7($this->drupalRoot)) {
$taskResult = $this->taskExec("$this->vendorDirectory/bin/drush")
->arg('cache:rebuild')
->dir("$this->drupalRoot/sites/$siteName")
->run();
$resultData->append($taskResult);
}
}

return $resultData;
Expand Down

0 comments on commit 01507e0

Please sign in to comment.