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

WordPress Trac noreply at wordpress.org
Thu May 26 16:44:41 UTC 2016


#20875: Introduce wp_cache_get_multi()
------------------------------------------+-----------------------------
 Reporter:  nacin                         |       Owner:
     Type:  enhancement                   |      Status:  reopened
 Priority:  normal                        |   Milestone:  Future Release
Component:  Cache API                     |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------
Changes (by boonebgorges):

 * keywords:  has-patch early => needs-patch needs-unit-tests


Comment:

 #36953 is a concrete use case for `wp_cache_get_multi()` in core.

 How can we move this ticket forward? Since it looks like plugins and cache
 drop-ins are already implementing `wp_cache_get_multi()`, maybe a good
 place to start is to do an inventory to understand what the interface has
 got to look like. I'm not sure how `wp_cache_get_multi( $keys, $groups )`
 would work, since individual keys are group-specific.
 https://github.com/ericmann/Redis-Object-Cache/blob/master/object-
 cache.php#L120 seems like it has to be the correct function signature.

 It would be helpful to get developers of some popular cache plugins looped
 into the conversation, so that we can all be on the same page with
 function signatures, etc.

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


More information about the wp-trac mailing list