Make WordPress Core


Ignore:
Timestamp:
06/09/2020 07:45:27 PM (4 years ago)
Author:
whyisjake
Message:

Cache API: Introduce wp_cache_get_multi().

Many caching backend have support for multiple gets in a single request. This brings that support to core, with a compatability fallback that will loop over requests if needed.

Fixes: #20875.
Props: nacin, tollmanz, wonderboymusic, ryan, jeremyfelt, spacedmonkey, boonebgorges, dd32, rmccue, ocean90, jipmoors, johnjamesjacoby, tillkruess, donmhico, davidbaumwald, SergeyBiryukov, whyisjake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable.php

    r47122 r47938  
    291291                        'found' => null,
    292292                    ),
     293                    'wp_cache_get_multiple'              => array(
     294                        'keys',
     295                        'group' => '',
     296                        'force' => false,
     297                    ),
    293298                    'wp_cache_incr'                      => array(
    294299                        'key',
Note: See TracChangeset for help on using the changeset viewer.