Skip to content

Commit

Permalink
Avoid clearing the cache while saving it on parallel (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick committed Jan 3, 2022
1 parent b76243b commit 9baf531
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/Caching/Detector/ChangedFilesDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ private function storeConfigurationDataHash(string $filePath, string $configurat
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;
}
Expand Down

0 comments on commit 9baf531

Please sign in to comment.