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

WordPress Trac noreply at wordpress.org
Tue Feb 3 21:53:32 UTC 2015


#31061: Accept FALSE as valid value from "pre_option_" hook
--------------------------------+--------------------------
 Reporter:  martin.krcho        |       Owner:
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Options, Meta APIs  |     Version:  4.1
 Severity:  normal              |  Resolution:  wontfix
 Keywords:  close               |     Focuses:  performance
--------------------------------+--------------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 > 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.

 This is the purpose of a persistent object cache, like APC, Memcached, or
 Redis. Here's some background on using APC with WordPress:
 https://markjaquith.wordpress.com/2010/08/06/apc-object-cache-backend-for-
 wordpress/

 Based on this discussion, I'm going to mark this as wontfix. Maybe at some
 point in the future we can talk about augmenting our key-value stores with
 information about data types, which would make it possible to do strict
 type checks in our options functions.

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


More information about the wp-trac mailing list