[wp-trac] [WordPress Trac] #54864: Update the object-cache.php in phpunit fixture to support wp_cache_get_multiple

WordPress Trac noreply at wordpress.org
Tue Dec 6 19:59:59 UTC 2022


#54864: Update the object-cache.php in phpunit fixture to support
wp_cache_get_multiple
--------------------------------------+---------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.2
Component:  Build/Test Tools          |     Version:  4.8
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------

Comment (by spacedmonkey):

 In [changeset:"54942" 54942]:
 {{{
 #!CommitTicketReference repository="" revision="54942"
 Tests: Change the `wp_cache_get_multiple` function to get cache keys in a
 single request.

 Follow up from [54423].

 Change the `wp_cache_get_multiple` function to call the `getMulti` method
 in the object cache object, to get cache keys in a single call to
 memcache. This speeds up test by loading caches faster.

 Props spacedmonkey, SergeyBiryukov.
 See #54864.
 }}}

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


More information about the wp-trac mailing list