[wpmu-trac] Re: [WordPress MU Trac] #976: wp_load_alloptions
ignores autoload
WordPress MU Trac
wpmu-trac at lists.automattic.com
Tue May 5 18:41:03 GMT 2009
#976: wp_load_alloptions ignores autoload
---------------------+------------------------------------------------------
Reporter: re5et | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version:
Severity: major | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Changes (by re5et):
* component: Optimisation => General
* severity: normal => major
Comment:
ewwwwwwwwwwwwwwwwwwww.
If you alter the wp_load_alloptions function as above so that it only
loads options marked as autoload, you can never get options that are
marked as autoload = no.
The get_option function first checks to see if the all options cache has
been built, and if it has not been, _get_options_cache /
wp_load_alloptions is called to build it. The all options cache is then
checked for the setting requested, and if it is not in there, it just
returns false. In wordpress, if the option is not in the cache it runs a
query on that row to get it, just case it was an autoload = no.
This basically boils down to autoload having absolutely no purpose in the
current version of wpmu.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/976#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list