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

WordPress Trac noreply at wordpress.org
Fri Dec 3 18:47:44 UTC 2021

#54574: Add wp_cache_*_multiple function
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  performance   |
 The `wp_cache_get_multiple` function was added in #20875. This allow for
 multiple cache keys be collected in one request. To complete the api, we
 should add the full CRUD functions. So

 - `wp_cache_add_multiple`
 - `wp_cache_delete_multiple`
 - `wp_cache_update_multiple`

 In core these would just be wrapper for core functions to allow multiple
 keys to passed in one function call. But would allow object cache plugin
 developers to implement them if their backend support it.

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

More information about the wp-trac mailing list