[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
Wed Sep 29 21:29:59 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   
---------------------------+------------------------------------------------
Changes (by scribu):

  * severity:  normal => major


Comment:

 Actually, switch_to_blog() should remain cheap to call. For instance, I'm
 using switch_to_blog() in one case to loop through all the sites in the
 network.

 So, I think we should best leave this to be handled on a case-by-case
 basis.

 Also, we should probably add this in the functions documentation. See
 #14953

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


More information about the wp-trac mailing list