[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 16:35:59 UTC 2011


#16287: get_option() - store retrieved option in a global array?
----------------------------------+----------------------
 Reporter:  digitalnature         |       Owner:
     Type:  enhancement           |      Status:  closed
 Priority:  normal                |   Milestone:
Component:  Database              |     Version:  3.1
 Severity:  normal                |  Resolution:  invalid
 Keywords:  get_option, database  |
----------------------------------+----------------------

Comment (by digitalnature):

 ok, now I'm confused. garyc40 & westi said wp default cache is not
 persistent, so it's wiped out on each load just like the globals.


 > I think what's going on is that the options that cause extra queries for
 you are not autoloaded.
 >
 > As already suggested, this is not a problem with WordPress but with your
 code.

 I don't really have a code here. I was referring  to the use of the
 get_option function in wp, plugins and themes...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16287#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list