[wp-trac] [WordPress Trac] #20875: Introduce wp_cache_get_multi()

WordPress Trac noreply at wordpress.org
Thu Jun 2 19:08:22 UTC 2016


#20875: Introduce wp_cache_get_multi()
--------------------------------------------------+-----------------------
 Reporter:  nacin                                 |       Owner:
     Type:  enhancement                           |      Status:  reopened
 Priority:  normal                                |   Milestone:  4.6
Component:  Cache API                             |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-opinion  |     Focuses:
--------------------------------------------------+-----------------------

Comment (by spacedmonkey):

 Another really good use for get multi would be in _get_non_cached_ids
 function. Currently this loops around all the ids it gets out of cache.
 For performance it would be much better to do this in one, if possible.

 I like the idea of calling the function wp_cache_get_multiple. It stops
 issues with existing object-caching drop-ins.

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


More information about the wp-trac mailing list