[wp-trac] [WordPress Trac] #11254: update_usermeta and delete_usermeta do not update or destroy cache

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 10 11:07:10 UTC 2010


#11254: update_usermeta and delete_usermeta do not update or destroy cache
--------------------------+-------------------------------------------------
 Reporter:  mark8barnes   |       Owner:  ryan         
     Type:  defect (bug)  |      Status:  new          
 Priority:  normal        |   Milestone:  3.0          
Component:  Cache         |     Version:  2.8.5        
 Severity:  minor         |    Keywords:  needs-testing
--------------------------+-------------------------------------------------

Comment(by nacin):

 Patch looks like a good approach. We only need the call to
 setup_userdata() as that will handle creating a new WP_User object if
 necessary.

 I think I agree with not using set_current_user/wp_set_current_user here,
 as I don't think we should be triggering the set_current_user action
 there. Unless that's used as part of caching?

 Calling setup_userdata() in update_user_meta() and delete_user_meta(),
 right after the calls to update_metadata() and delete_metadata(), should
 complete this for the non-deprecated functions.

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


More information about the wp-trac mailing list