8000 merged branch caponica/cache-clear-win-workaround (PR #8767) · symfony/symfony@d60fa06 · GitHub
[go: up one dir, main page]

Skip to content

Commit d60fa06

Browse files
committed
merged branch caponica/cache-clear-win-workaround (PR #8767)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #8767). Discussion ---------- Added sleep() workaround for windows php rename bug For more info see links in issue #8766 Commits ------- b3c815b Added sleep() workaround for windows php rename bug
2 parents 282b05c + dbd0855 commit d60fa06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383
$this->warmup($warmupDir, $realCacheDir, !$input->getOption('no-optional-warmers'));
8484

8585
$filesystem->rename($realCacheDir, $oldCacheDir);
86+
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
87+
sleep(1); // workaround for windows php rename bug
88+
}
8689
$filesystem->rename($warmupDir, $realCacheDir);
8790
}
8891

0 commit comments

Comments
 (0)
0