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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 16 21:11:52 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 duck_):

 Replying to [comment:5 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.

 #20460.

 Also Ryan on #19490: "We usually clean [cache] after the delete" because
 of possibility of actions firing in between. Doesn't look like an issue in
 this case, but something to think about.

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


More information about the wp-trac mailing list