-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[#6947] some minor tweaks #7075
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
Conversation
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
each cached items. Each tag is a plain string identifier that you can use at any | ||
time to trigger the removal of all items that had this tag attached to them. | ||
each cached item. Each tag is a plain string identifier that you can use at any | ||
time to trigger the removal of all items that have this tag attached to them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all items that have this tag attached to them.
-> all items associated with this tag.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
// invalidate all items related to `tag_1` or `tag_3` | ||
$cache->invalidateTags(array('tag_1', 'tag_3')); | ||
|
||
// if you know the cache key, you can of course delete directly | ||
// if you know the cache key, you can of course delete the item directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove of course
in this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because terms like "of course", "very easy", "just...", "easily", "simply", etc. are patronizing and most of the times, redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, updated here too.
Great! Ready to be merged. Thanks @xabbuh. |
No description provided.