[wp-trac] [WordPress Trac] #19500: User deletion doesn't clear user_meta cache

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 24 22:13:49 UTC 2012


#19500: User deletion doesn't clear user_meta cache
--------------------------+---------------------
 Reporter:  duck_         |       Owner:  ryan
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.4
Component:  Cache         |     Version:  3.2.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [20581]:
 {{{
 #!CommitTicketReference repository="" revision="20581"
 * Return empty arrays instead of false for all conditions in
 get_blogs_of_user().
 * When deleting a user, use a delete_metadata_by_mid() loop over the meta
 so that the meta cache is cleared.
 * Use remove_user_from_blog() for DRYness.

 Props nacin, duck_
 Fixes #19500
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19500#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list