From 01507e0f712e33524c0a296eb8732a524058c93d Mon Sep 17 00:00:00 2001 From: K Widholm <279278+apotek@users.noreply.github.com> Date: Thu, 26 Sep 2024 10:45:52 -0400 Subject: [PATCH] Do not force a cache rebuild after a database refresh (#221) A cache rebuild forces a full bootstrap and any new code that relies on an unenabled module will fail the build. Resolves #220 --- src/Robo/Plugin/Commands/DevelopmentModeCommands.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Robo/Plugin/Commands/DevelopmentModeCommands.php b/src/Robo/Plugin/Commands/DevelopmentModeCommands.php index 4106b4c..4be298f 100644 --- a/src/Robo/Plugin/Commands/DevelopmentModeCommands.php +++ b/src/Robo/Plugin/Commands/DevelopmentModeCommands.php @@ -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;