Skip to content

Commit 4a877b7

Browse files
Updated the Stache Store to not remove stache items that exist
1 parent 14cd46b commit 4a877b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stache/Stores/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function handleFileChanges()
208208

209209
// Get all the deleted files.
210210
// This would be any paths that exist in the cached array that aren't there anymore.
211-
$deleted = $existing->keys()->diff($files->keys())->values();
211+
$deleted = $existing->keys()->map(fn ($path) => $this->getKeyFromPath($path))->diff($files->keys()->map(fn ($path) => $this->getKeyFromPath($path)))->values();
212212

213213
// If there are no modified or deleted files, there's nothing to update.
214214
if ($modified->isEmpty() && $deleted->isEmpty()) {

0 commit comments

Comments
 (0)