Skip to content

Commit

Permalink
Merge pull request #18 from digipolisgent/issue/#17
Browse files Browse the repository at this point in the history
Fixes #17: Clear opcache on all hosts.
  • Loading branch information
Jelle-S authored Jun 8, 2018
2 parents 8bc3cf1 + 076ce73 commit 2498d82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AbstractRoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ protected function deployTask(

// Clear OPcache if present.
if (isset($remote['opcache']) && (!array_key_exists('clear', $remote['opcache']) || $remote['opcache']['clear'])) {
$collection->addTask($this->clearOpCacheTask($worker, $auth, $remote));
foreach ($servers as $server) {
$collection->addTask($this->clearOpCacheTask($server, $auth, $remote));
}
}

// Clean release and backup dirs on the servers.
Expand Down

0 comments on commit 2498d82

Please sign in to comment.