From 076ce73fd0c931c22b2588feb4a56d7fc2d987ab Mon Sep 17 00:00:00 2001 From: Jelle Sebreghts Date: Fri, 8 Jun 2018 08:54:02 +0200 Subject: [PATCH] Fixes #17: Clear opcache on all hosts. --- src/AbstractRoboFile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AbstractRoboFile.php b/src/AbstractRoboFile.php index 86067f1..66fc886 100644 --- a/src/AbstractRoboFile.php +++ b/src/AbstractRoboFile.php @@ -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.