Skip to content

Commit

Permalink
Added sleep() workaround for windows php rename bug
Browse files Browse the repository at this point in the history
  • Loading branch information
caponica authored and fabpot committed Aug 15, 2013
1 parent 282b05c commit dbd0855
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->warmup($warmupDir, $realCacheDir, !$input->getOption('no-optional-warmers'));

$filesystem->rename($realCacheDir, $oldCacheDir);
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
sleep(1); // workaround for windows php rename bug
}
$filesystem->rename($warmupDir, $realCacheDir);
}

Expand Down

0 comments on commit dbd0855

Please sign in to comment.