[wp-trac] Re: [WordPress Trac] #7540: allow multiple values for key in usermeta

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 10:19:43 GMT 2009


#7540: allow multiple values for key in usermeta
-------------------------+--------------------------------------------------
 Reporter:  wnorris      |        Type:  enhancement
   Status:  new          |    Priority:  normal     
Milestone:  2.8          |   Component:  Users      
  Version:  2.6.1        |    Severity:  normal     
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch => needs-patch


Comment:

 other notes...

 the patch no longer works against trunk.

 other suggested improvements:

 {{{
 wp_cache_get($user_id, 'user_meta');
 wp_cache_delete($user_id, 'user_meta');
 }}}

 should be replaced with calls to:

 {{{
 wp_cache_get($user_id, 'user');
 wp_cache_delete($user_id, 'users');
 }}}

 (see Ryan's note)

 add_user_meta could check the cache too, on a unique key

 ... and the above note on delete_user_meta_by_key().

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


More information about the wp-trac mailing list