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

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 21 02:53:20 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  |  
-------------------------+--------------------------------------------------

Comment(by misterbisson):

 @Denis-de-Bernardy

 Please see my reply to Ryan's comment. Code that's reading from the users
 object cache is expecting one value per key. There's really no way to
 avoid double caching without breaking backwards compatibility.

 > {{{
 > 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');
 > }}}

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


More information about the wp-trac mailing list