[wp-trac] [WordPress Trac] #11761: Create a clean_user_cache() function / fix refresh_user_details()

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 17:17:46 UTC 2010


#11761: Create a clean_user_cache() function / fix refresh_user_details()
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan
     Type:  defect (bug)       |      Status:  new 
 Priority:  normal             |   Milestone:  3.0 
Component:  Cache              |     Version:  3.0 
 Severity:  major              |    Keywords:      
-------------------------------+--------------------------------------------
 refresh_user_details() potentially leaves garbage in the cache, in that it
 merely deletes two buckets:

  - users
  - userlogins

 wp_delete_user(), by contrast, additionally deletes:

  - useremail
  - userslugs

 There are several other occurrences where the same applies, in WP. We
 should refactor the area of WP a little and introduce some kind of
 clean_user_cache() function.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11761>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list