[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 19:23:23 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  |
------------------------------------+----------------------
Changes (by dcavins):
 * status:  assigned => closed
 * resolution:   => fixed
Comment:
 In [changeset:"12781" 12781]:
 {{{
 #!CommitTicketReference repository="" revision="12781"
 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, imath.
 Fixes #8388.
 }}}
-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8388#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list