[buddypress-trac] [BuddyPress Trac] #8388: BP_XProfile_ProfileData::delete_data_for_user() doesn't clear cache (was: `)
buddypress-trac
noreply at wordpress.org
Tue Nov 10 00:11:49 UTC 2020
#8388: BP_XProfile_ProfileData::delete_data_for_user() doesn't clear cache
------------------------------+-----------------------
Reporter: dd32 | Owner: dcavins
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.4.0
Component: Extended Profile | Version:
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+-----------------------
Comment (by dd32):
Thanks for running with it @dcavins!
While I don't really like using a group incrementor for caches, I can
understand that sometimes it might be the best method for invalidations
like this.
I guess it all comes down to the expected operations, if it's anticipated
that it's more common to delete the data for many users at once then a
group incrementor is useful, if it's anticipated that it's usually just
one user, then individual cache deletions might be more reasonable.
I'm not familiar enough with how BuddyPress is used, I would normally
assume that bulk deletions aren't a thing, but I guess there's some use-
cases that would prove me wrong :)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8388#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list