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

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 23 05:34:55 UTC 2012


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

Comment (by johnjamesjacoby):

 19500.2.diff moves clean_user_cache( $id ) ahead of the queries that
 delete the user in wpmu_delete_user(). Without this, calls to
 wpmu_delete_user() do not successfully clear the user cache because the
 user no longer exists. This causes...

 {{{
 $user = WP_User::get_data_by( 'id', $id );
 }}}

 ...to fail in clear_user_cache(), and the $user variable caches are never
 cleared.

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


More information about the wp-trac mailing list