Added sleep() workaround for windows php rename bug
This commit is contained in:
parent
282b05cbc1
commit
dbd08551f8
@ -83,6 +83,9 @@ EOF
|
|||||||
$this->warmup($warmupDir, $realCacheDir, !$input->getOption('no-optional-warmers'));
|
$this->warmup($warmupDir, $realCacheDir, !$input->getOption('no-optional-warmers'));
|
||||||
|
|
||||||
$filesystem->rename($realCacheDir, $oldCacheDir);
|
$filesystem->rename($realCacheDir, $oldCacheDir);
|
||||||
|
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||||
|
sleep(1); // workaround for windows php rename bug
|
||||||
|
}
|
||||||
$filesystem->rename($warmupDir, $realCacheDir);
|
$filesystem->rename($warmupDir, $realCacheDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user