Skip to content

[Caching] Alternative Fix caching on change config cache not cleared#3483

Merged
samsonasik merged 1 commit intomainfrom
caching-fix-path-key
Mar 16, 2023
Merged

[Caching] Alternative Fix caching on change config cache not cleared#3483
samsonasik merged 1 commit intomainfrom
caching-fix-path-key

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented Mar 16, 2023

@jackbentley this is alternative of PR:

also make consistent with key definition instead of the value of key on other methods.

Closes #3479
Fixes rectorphp/rector#7835

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba this is safer than #3479 as it doesn't immediately clear the cache on switching between projects that the config cache still null to be filled.

Instead, this PR make change of cache key to make consistent with other cache key usage in other methods instead of using hashFile() as the cache value.

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit e11572a into main Mar 16, 2023
@samsonasik samsonasik deleted the caching-fix-path-key branch March 16, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File passes after config cache when it should fail because of cache

1 participant