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

WordPress Trac noreply at wordpress.org
Thu Jun 2 09:11:47 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 dd32):

 cross-linking to #31245 which has a lot of input on `multi_get()`,
 https://core.trac.wordpress.org/ticket/31245#comment:6 is an example of
 how splintered the current ecosystem is.

 I'm hesitant to comment here, as I think it should be handled in #31245
 simply due to the amount of discussion there (or someone should summarize
 that ticket here, and direct all further discussion here).

 I think the only route forward here will be to find a new name, as the
 `wp_cache_get_multi()` function signature is just not viable thanks to
 existing users (even the ones which have insane return values)
 `wp_cache_multi_get()`? `wp_multi_cache_get()`? `wp_cache_get_multiple()?`
 `wp_cache_getS()`?

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


More information about the wp-trac mailing list