[wp-trac] [WordPress Trac] #54574: Add wp_cache_*_multiple function

WordPress Trac noreply at wordpress.org
Fri Feb 11 18:47:52 UTC 2022


#54574: Add wp_cache_*_multiple function
--------------------------------------+---------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.0
Component:  Cache API                 |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+---------------------------

Comment (by SergeyBiryukov):

 In [changeset:"52706" 52706]:
 {{{
 #!CommitTicketReference repository="" revision="52706"
 Cache API: Reorder object cache functions and methods for consistency.

 The original order was alphabetical, which became less obvious as newer
 functions got added, resulting in a somewhat random order.

 This commits aims to organize the functions and related `WP_Object_Cache`
 methods in a more predictable order:

 * `wp_cache_init()`
 * `wp_cache_add()`
 * `wp_cache_add_multiple()`
 * `wp_cache_replace()`
 * `wp_cache_set()`
 * `wp_cache_set_multiple()`
 * `wp_cache_get()`
 * `wp_cache_get_multiple()`
 * `wp_cache_delete()`
 * `wp_cache_delete_multiple()`
 * `wp_cache_incr()`
 * `wp_cache_decr()`
 * `wp_cache_flush()`
 * `wp_cache_close()`
 * `wp_cache_add_global_groups()`
 * `wp_cache_add_non_persistent_groups()`
 * `wp_cache_switch_to_blog()`
 * `wp_cache_reset()`

 Follow-up to [3011], [6543], [7986], [13066], [18580], [21403], [47938],
 [52700], [52703-52705].

 See #54728, #54574.
 }}}

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


More information about the wp-trac mailing list