Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GH-7486] Bugfix: failing when clearing empty cache is wrong semantics #8376

Merged
merged 1 commit into from
Dec 6, 2020

Conversation

beberlei
Copy link
Member

@beberlei beberlei commented Dec 6, 2020

When you call clear cache on result, query, metadata caches, then clearing an empty cache is also semantically clearing the cache. As such it should not fail with an error as it currently does. This could be considered a BC break, but this behavior is completly bogus, so I consider it a bug to be fixed.

Fixes #7486

@beberlei beberlei added the Bug label Dec 6, 2020
@beberlei beberlei added this to the 2.8.2 milestone Dec 6, 2020
@beberlei beberlei merged commit 21d2c88 into doctrine:2.8.x Dec 6, 2020
@beberlei beberlei deleted the GH-7486-BugfixNoFailOnEmptyClear branch December 6, 2020 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doctrine:cache:clear-* and doctrine:mongodb:cache:clear-* have inconsistent behaviors
2 participants