[wp-trac] [WordPress Trac] #64863: Eliminate switch_to_blog() from get_blog_option(), update_blog_option(), WP_Site::get_details(), and get_blog_post() using $wpdb->get_blog_prefix()

WordPress Trac noreply at wordpress.org
Thu Apr 30 06:36:50 UTC 2026


#64863: Eliminate switch_to_blog() from get_blog_option(), update_blog_option(),
WP_Site::get_details(), and get_blog_post() using $wpdb->get_blog_prefix()
-------------------------------------------------+-------------------------
 Reporter:  PerS                                 |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Networks and Sites                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  multisite,
  tests                                          |  performance
-------------------------------------------------+-------------------------

Comment (by PerS):

 Benchmark is available at
 https://gist.github.com/soderlind/4c621915e170762ae863135dfed11c47

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64863#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list