[wp-trac] [WordPress Trac] #31061: Accept FALSE as valid value from "pre_option_" hook

WordPress Trac noreply at wordpress.org
Tue Feb 3 14:31:31 UTC 2015


#31061: Accept FALSE as valid value from "pre_option_" hook
--------------------------------+------------------------------
 Reporter:  martin.krcho        |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  4.1
 Severity:  normal              |  Resolution:
 Keywords:  close               |     Focuses:  performance
--------------------------------+------------------------------

Comment (by martin.krcho):

 I had a look at all the options that are causing the extra database
 queries and realized that I need to start caching the "notoptions" list as
 well as the options that are not autoloaded. Please accept my apologies
 for the confusion.

 It would be nice to have some API to cache certain options between
 requests. I have a bunch of settings in themes and plugins that are not
 set (and I will probably never set/enable them) that are causing my system
 to make about 20 unnecessary database queries on every page load. When you
 add it all up, I end up with circa 500 MySQL requests per second.

 Any ideas?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31061#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list