Skip to content

Commit

Permalink
[Caching] Fix dependent files not yet exists on ChangedFilesDetector:…
Browse files Browse the repository at this point in the history
…:cacheFileWithDependencies() (#3736)
  • Loading branch information
samsonasik committed May 5, 2023
1 parent d9374dd commit 4179a87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/Caching/Detector/ChangedFilesDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public function cacheFileWithDependencies(string $filePath): void
$hash = $this->hashFile($filePath);

$this->cache->save($filePathCacheKey, CacheKey::FILE_HASH_KEY, $hash);

if (! isset($this->dependentFiles[$filePathCacheKey])) {
return;
}

$this->cache->save(
$filePathCacheKey . '_files',
CacheKey::DEPENDENT_FILES_KEY,
Expand Down

0 comments on commit 4179a87

Please sign in to comment.