[buddypress-trac] [BuddyPress Trac] #8388: ` (was: BP_XProfile_ProfileData::delete_data_for_user() doesn't clear cache)

buddypress-trac noreply at wordpress.org
Mon Nov 9 19:43:48 UTC 2020


#8388: `
------------------------------+-----------------------
 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         |
------------------------------+-----------------------
Changes (by dcavins):

 * owner:  (none) => dcavins
 * status:  new => assigned


Comment:

 Thanks for your patch, @dd32! I've added a test showing that your patch
 works and also added a second patch that avoids the troublesome bulk
 delete (the cached objects aren't cleared because the `before` and `after`
 delete hooks aren't called, so what else isn't getting done in the bulk
 version?)

 I'd be happy to hear your comments, @dd32, @imath @johnjamesjacoby on what
 you feel is the best way to handle this. For reference, with profile
 groups and fields, we use an incremented cache so it's easy to invalidate
 a large swath of cached items, but the profile field data for a user is
 cached without an incrementor.

 Thanks!

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8388#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list