[wp-trac] [WordPress Trac] #14992: When Object Caching is enabled switch_to_blog causes issues with some functions

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 11 20:09:03 UTC 2010


#14992: When Object Caching is enabled switch_to_blog causes issues with some
functions
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:                 
     Type:  defect (bug)   |      Status:  new            
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Multisite      |     Version:                 
 Severity:  major          |    Keywords:  dev-feedback   
---------------------------+------------------------------------------------

Comment(by Denis-de-Bernardy):

 Imho, this would be a bug in the object cache implementations. They should
 key things based on the blog ID, i.e.:

 {{{
 $this->cache[$blog_id][$key]
 }}}

 vs:

 {{{
 $this->cache[$key]
 }}}

 The built-in, memory-based object cache should do the same to set the
 example.

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


More information about the wp-trac mailing list