[wp-trac] [WordPress Trac] #35096: Every option call results in a database query on multisite
WordPress Trac
noreply at wordpress.org
Tue Dec 15 06:11:54 UTC 2015
#35096: Every option call results in a database query on multisite
--------------------------------+------------------------------
Reporter: buley | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Changes (by SergeyBiryukov):
* focuses: => multisite
* milestone: => Awaiting Review
Comment:
From comment:1:ticket:20021:
> > On a MultiSite installation, wp_load_alloptions() does not cache the
results in the object cache
>
> Only when `is_multisite()` AND `defined( 'WP_INSTALLING' )` are the
options not cached. On a local multisite installation the number of
queries didn't increase when calling `wp_load_alloptions()` or
`get_option( 'rewrite_rules' )` multiple times.
>
> It seems like something else must be going on to cause your issue.
I could not reproduce either, `get_option( 'rewrite_rules' )` or
`get_avatar()` does not result in additional queries on my Multisite
install.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35096#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list