mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 12:20:52 +00:00
Avoid clearing the cache while saving it on parallel (#1616)
This commit is contained in:
parent
b76243b416
commit
9baf531477
|
@ -113,6 +113,10 @@ final class ChangedFilesDetector
|
|||
private function invalidateCacheIfConfigurationChanged(string $key, string $configurationHash): void
|
||||
{
|
||||
$oldCachedValue = $this->cache->load($key, CacheKey::CONFIGURATION_HASH_KEY);
|
||||
if ($oldCachedValue === null){
|
||||
return;
|
||||
}
|
||||
|
||||
if ($oldCachedValue === $configurationHash) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user