-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Rename invalidate-tags
command as clear-tags
?
#45711
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
Comments
I used "invalidate" because of the That all being said, I don't have a strong opinion on this. |
Thanks for your comments Kevin. I see this is more complex than it looked at first. Technically speaking, what does the (1) Turns the tags as invalid, but items are still stored in the cache (but invalid) until they are actually cleared later. To me, (1) is "invalidate" and (2) is "clear". |
Good point, I'm not actually sure if it's 1 or 2. @nicolas-grekas could probably answer this.
I think if this were added, we would call |
Or @Nyholm can help us here |
We provide both implementations 1. and 2. |
Description
In #44692 we added a
cache:pool:invalidate-tags
command in addition to the existingcache:pool:clear
command.I think
invalidate
is too long and uncommon ... besides being inconsistent with the existingclear
command.Even in the proposed docs of this feature (symfony/symfony-docs#16328) we use the "clear" word to explain the command:
So, should we rename
cache:pool:invalidate-tags
ascache:pool:clear-tags
?Thanks!
Example
No response
The text was updated successfully, but these errors were encountered: