Changes between Initial Version and Version 2 of Ticket #10274
- Timestamp:
- 06/25/2009 07:40:14 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10274 – Description
initial v2 5 5 First page load: 6 6 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. 8 11 9 12 Next page load: 10 13 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