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/src/wp-includes/load.php

    r47919 r47938  
    629629    }
    630630
     631    require_once( ABSPATH . WPINC . '/cache-compat.php' );
     632
    631633    /*
    632634     * If cache supports reset, reset instead of init if already
Note: See TracChangeset for help on using the changeset viewer.