[wp-trac] [WordPress Trac] #23330: Allow autoloading all options, not just autoload = yes options
WordPress Trac
noreply at wordpress.org
Fri Feb 1 02:28:22 UTC 2013
#23330: Allow autoloading all options, not just autoload = yes options
--------------------------+-----------------------------
Reporter: ryan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Cache | Version: 3.5.1
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------------
Comment (by nacin):
Replying to [comment:7 dd32]:
> Can we do JIT unserialization instead perhaps? Don't unserialize on
load, but instead do it on first-access?
That's what I would have figured we already do. Unserialization isn't
exactly speedy and surely we woukd have made that optimization at some
point.
It turns out, we only unserialize on load in wp_load_core_site_options()
-- so, a couple of multisite options we probably need anyway. (The
potential for accidentally double-unserializing is not major as the list
of queried options is thankfully a static list.) So I'm not really sure
what exactly rmccue is running into.
One point, though, is we unserialize not just on first access, but on
every access. Changing that is possible but we'll need to juggle that
state somehow.
Separate note: How do we use get_multi without knowing individual key
names?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23330#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list