[wp-trac] [WordPress Trac] #57326: get_blog_details() cache misses
WordPress Trac
noreply at wordpress.org
Wed Dec 14 05:48:57 UTC 2022
#57326: get_blog_details() cache misses
--------------------------------------+------------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: multisite
--------------------------------------+------------------------------
Comment (by dd32):
After getting https://github.com/WordPress/wordpress-develop/pull/3746 to
pass, I decided to strip out the custom code in favour of a different
function, `get_blog_id_from_url()`.
By passing `''` as the `$path` the domain-only branch ''may'' change it's
return value, as it's gone from a non-ordered-sql to using a deterministic
`ORDER BY id ASC`. Under most situations, these should return the same
data.. unless the records in the database table were inserted in a
different order.
Needs review from someone more familiar with Multisite caching :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57326#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list