Changeset 54942
- Timestamp:
- 12/06/2022 07:59:45 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/object-cache.php
r54448 r54942 324 324 */ 325 325 function wp_cache_supports( $feature ) { 326 return false; 326 switch ( $feature ) { 327 case 'get_multiple': 328 return true; 329 default: 330 return false; 331 } 327 332 } 328 333 … … 483 488 function wp_cache_get_multiple( $keys, $group = '', $force = false ) { 484 489 global $wp_object_cache; 490 491 // Prime multiple keys in a single Memcached call. 492 $wp_object_cache->getMulti( $keys, $group ); 493 485 494 return $wp_object_cache->getMultiple( $keys, $group, $force ); 486 495 } … … 2162 2171 $keys = (array) $keys; 2163 2172 } 2173 $keys = array_values( $keys ); 2164 2174 2165 2175 // If we have equal numbers of keys and groups, merge $keys[n] and $group[n].
Note: See TracChangeset
for help on using the changeset viewer.