[buddypress-trac] [BuddyPress Trac] #8388: BP_XProfile_ProfileData::delete_data_for_user() doesn't clear cache
buddypress-trac
noreply at wordpress.org
Wed Nov 11 23:29:42 UTC 2020
#8388: BP_XProfile_ProfileData::delete_data_for_user() doesn't clear cache
------------------------------------+----------------------
Reporter: dd32 | Owner: dcavins
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.4.0
Component: Extended Profile | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback |
------------------------------------+----------------------
Comment (by imath):
In [changeset:"12785" 12785]:
{{{
#!CommitTicketReference repository="" revision="12785"
Ensure cached data is cleared in
BP_XProfile_ProfileData::delete_data_for_user().
Data was being deleted in bulk using a direct SQL query, bypassing the
`xprofile_data_before_delete` and `xprofile_data_after_delete` actions,
resulting in stale data persisting in the xprofile cache. This change uses
`xprofile_delete_field_data()` to delete the user's data so that the
action hooks are called.
Props dd32, r-a-y, dcavins.
See #8388 (branch 6.0).
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8388#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list