[wp-trac] [WordPress Trac] #16287: get_option() - store retrieved option in a global array?
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 18 15:09:33 UTC 2011
#16287: get_option() - store retrieved option in a global array?
----------------------------------+------------------------------
Reporter: digitalnature | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.1
Severity: normal | Resolution:
Keywords: get_option, database |
----------------------------------+------------------------------
Comment (by garyc40):
Retrieved options are stored in WP object cache. When getting the value of
an option, if the cache key for that option doesn't exist, only then does
WordPress query the database. WP object cache is built-in.
Take a look at {{{get_option()}}} source and you can see
{{{wp_cache_get()}}} and {{{wp_cache_set()}}} in there.
So I guess this is an invalid ticket.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16287#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list