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

WordPress Trac noreply at wordpress.org
Tue Feb 11 20:30:23 UTC 2020


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

Comment (by tillkruess):

 I'm sorry, that was sloppy. I updated the patch:

 - Fixed comment indentation in unit test
 - Updated version to 5.5
 - Moved loading of cache compat file in `wp_start_object_cache()` (removed
 condition)
 - Added missing `cache-compat.php` file

 Having a `wp_cache_get_multiple()` compat fallback (when a 3rd party
 object cache is used) will allow WP core to use that function without
 causing a fatal errors.

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


More information about the wp-trac mailing list