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

WordPress Trac noreply at wordpress.org
Fri Feb 11 12:51:09 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
--------------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52700" 52700]:
 {{{
 #!CommitTicketReference repository="" revision="52700"
 Cache: Add `wp_cache_*_multiple` functions.

 Add new caching functions named `wp_cache_add_multiple`,
 `wp_cache_set_multiple` and `wp_cache_delete_multiple`. All of these
 functions allow for an array of data to be passed, so that multiple cache
 objects can be created / edited / deleted in a single function call. This
 follows on from [47938] where the `wp_cache_get_multiple` function was
 introduced and allowed for multiple cache objects to be received in one
 call.

 Props: spacedmonkey, tillkruess, adamsilverstein, flixos90, mitogh,
 pbearne.
 Fixes: #54574.
 }}}

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


More information about the wp-trac mailing list