From dbd08551f8ac780f64152e548c798c8d94027d99 Mon Sep 17 00:00:00 2001 From: Christian Morgan Date: Thu, 15 Aug 2013 14:21:20 +0100 Subject: [PATCH] Added sleep() workaround for windows php rename bug --- .../Bundle/FrameworkBundle/Command/CacheClearCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php index e2bade38a7..dcefd6857b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php @@ -83,6 +83,9 @@ EOF $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); }