Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
beberlei merged 1 commit into
doctrine:2.8.xfrom
beberlei:GH-7486-BugfixNoFailOnEmptyClear
Dec 6, 2020
Merged

[GH-7486] Bugfix: failing when clearing empty cache is wrong semantics#8376
beberlei merged 1 commit into
doctrine:2.8.xfrom
beberlei:GH-7486-BugfixNoFailOnEmptyClear

Conversation

@beberlei
Copy link
Copy Markdown
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