[wp-trac] [WordPress Trac] #46357: Don't prime site meta caches core functions

WordPress Trac noreply at wordpress.org
Fri Mar 15 12:22:49 UTC 2019


#46357: Don't prime site meta caches core functions
--------------------------------+-------------------------------------
 Reporter:  spacedmonkey        |       Owner:  flixos90
     Type:  defect (bug)        |      Status:  assigned
 Priority:  normal              |   Milestone:  5.1.2
Component:  Networks and Sites  |     Version:  5.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite, performance
--------------------------------+-------------------------------------
Changes (by spacedmonkey):

 * type:  enhancement => defect (bug)


Comment:

 This is a bug and enhancement at the same time.

 The fixes the issue in #46167 as the error happens in function
 `get_site_by_path` that calls prime site meta before the check is loaded.

 The two patches together work hand in hand, to make that queries are a not
 run on a none existing table, generating the error.

 @flixos90 if 5.2 is landing soon, I am happy that it goes in that.

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


More information about the wp-trac mailing list