[wp-trac] [WordPress Trac] #19967: Caching get_option(), set_option() and update_option()

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 4 12:48:56 UTC 2012


#19967: Caching get_option(), set_option() and update_option()
-------------------------+----------------------
 Reporter:  egorpromo    |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:  3.3.1
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |
-------------------------+----------------------
Changes (by duck_):

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


Comment:

 The Options API performs caching with the caching API which means that by
 default it's non-persistent (as you suggest with a global) and can also be
 persistent when using an external caching solution.

 See the wp_cache_get(), wp_cache_set() and wp_load_alloptions() calls in
 functions.php in 3.3.1:

  * [http://core.trac.wordpress.org/browser/tags/3.3.1/wp-
 includes/functions.php#L547 update_option()]
  * [http://core.trac.wordpress.org/browser/tags/3.3.1/wp-
 includes/functions.php#L351 get_option()]

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


More information about the wp-trac mailing list