WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #10274


Ignore:
Timestamp:
06/25/2009 07:40:14 PM (12 years ago)
Author:
ryan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10274 – Description

    initial v2  
    55First page load:
    66
    7 * wp_cache_get all_options * Nothing is cached to all_options, so query db for all option names and values * Loop over DB results, wp_cache_add each option and construct all_options list. * wp_cache_set all_options with the options list * Cache for each option is now primed via the wp_cache_adds.
     7 * wp_cache_get all_options
     8 * Nothing is cached to all_options, so query db for all option names and values
     9 * Loop over DB results, wp_cache_add each option and construct all_options list.
     10 * wp_cache_set all_options with the options list * Cache for each option is now primed via the wp_cache_adds.
    811
    912Next page load:
    1013
    11 * wp_get_get all_options * all_options has cached list of option names, pass those names to wp_cache_get_multi * get_multi does one memcached request for all options * cache is now primed for all options, each option in its own bucket, no need to query DB
     14 * wp_get_get all_options
     15 * all_options has cached list of option names, pass those names to wp_cache_get_multi
     16 * get_multi does one memcached request for all options
     17 * cache is now primed for all options, each option in its own bucket, no need to query DB