[wp-trac] [WordPress Trac] #17883: get_blog_option queries DB on default blog_id

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 24 18:37:43 UTC 2011


#17883: get_blog_option queries DB on default blog_id
--------------------------+------------------------------
 Reporter:  wpmuguru      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.1.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by wpmuguru):

 The $wpdb->get_blog_prefix( ... will return the prefix for the current
 blog when null is passed. So, the current implementation defaults to the
 current blog but queries the DB instead of retrieving from cache.

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


More information about the wp-trac mailing list