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

buddypress-trac noreply at wordpress.org
Wed Nov 4 22:45:00 UTC 2020


#8388: BP_XProfile_ProfileData::delete_data_for_user() doesn't clear cache
------------------------------+---------------------
 Reporter:  dd32              |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.4.0
Component:  Extended Profile  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+---------------------

Comment (by dd32):

 An alternative approach would be to call
 `BP_XProfile_ProfileData::delete()` for each individual user/field pair
 which processes the cache evictions via the actions there.

 https://buddypress.trac.wordpress.org/browser/trunk/src/bp-
 xprofile/classes/class-bp-xprofile-profiledata.php#L273

 There's also `BP_XProfile_ProfileData:: delete_for_field()` which also
 doesn't do the cache evictions
 https://buddypress.trac.wordpress.org/browser/trunk/src/bp-
 xprofile/classes/class-bp-xprofile-profiledata.php#L633

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


More information about the buddypress-trac mailing list