Changeset 47944
- Timestamp:
- 06/10/2020 09:55:56 AM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache-compat.php
r47939 r47944 11 11 if ( ! function_exists( 'wp_cache_get_multiple' ) ) : 12 12 /** 13 * Compat function to mimic wp_cache_get_multiple. 14 * Retrieves multiple values from the cache. 13 * Retrieves multiple values from the cache in one call. 14 * 15 * Compat function to mimic wp_cache_get_multiple(). 15 16 * 16 17 * @ignore … … 19 20 * @see wp_cache_get_multiple() 20 21 * 21 * @param array $keys Array of keys to fetch.22 * @param bool $force Optional. Unused. Whether to force a refetch rather than relying on the local23 * cache. Default false.24 * 22 * @param array $keys Array of keys under which the cache contents are stored. 23 * @param string $group Optional. Where the cache contents are grouped. Default empty. 24 * @param bool $force Optional. Whether to force an update of the local cache 25 * from the persistent cache. Default false. 25 26 * @return array Array of values organized into groups. 26 27 */ 27 function wp_cache_get_multiple( $keys, $group = ' default', $force = false ) {28 function wp_cache_get_multiple( $keys, $group = '', $force = false ) { 28 29 $values = array(); 29 30 -
trunk/src/wp-includes/cache.php
r47938 r47944 114 114 * @param int|string $key The key under which the cache contents are stored. 115 115 * @param string $group Optional. Where the cache contents are grouped. Default empty. 116 * @param bool $force Optional. Whether to force an update of the local cache from the persistent117 * cache. Default false.116 * @param bool $force Optional. Whether to force an update of the local cache 117 * from the persistent cache. Default false. 118 118 * @param bool $found Optional. Whether the key was found in the cache (passed by reference). 119 119 * Disambiguates a return of false, a storable value. Default null. 120 * @return bool|mixed False on failure to retrieve contents or the cache 121 * contents on success 120 * @return mixed|false The cache contents on success, false on failure to retrieve contents. 122 121 */ 123 122 function wp_cache_get( $key, $group = '', $force = false, &$found = null ) { … … 128 127 129 128 /** 130 * Gets multiple values fromcache in one call.129 * Retrieves multiple values from the cache in one call. 131 130 * 132 131 * @since 5.5.0 132 * 133 133 * @see WP_Object_Cache::get_multiple() 134 * 135 * @param array $keys Array of keys to get from group. 136 * @param string $group Optional. Where the cache contents are grouped. Default empty. 137 * @param bool $force Optional. Whether to force an update of the local cache from the persistent 138 * cache. Default false. 139 * @return array|bool Array of values. 134 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 135 * 136 * @param array $keys Array of keys under which the cache contents are stored. 137 * @param string $group Optional. Where the cache contents are grouped. Default empty. 138 * @param bool $force Optional. Whether to force an update of the local cache 139 * from the persistent cache. Default false. 140 * @return array Array of values organized into groups. 140 141 */ 141 142 function wp_cache_get_multiple( $keys, $group = '', $force = false ) { -
trunk/src/wp-includes/class-wp-object-cache.php
r47938 r47944 271 271 * @since 2.0.0 272 272 * 273 * @param int|string $key What the contents in the cache are called.274 * @param string $group 275 * @param bool $force Optional. Unused. Whether to force a refetch rather than relying on the local276 * cache. Default false.277 * @param bool $found 278 * 273 * @param int|string $key The key under which the cache contents are stored. 274 * @param string $group Optional. Where the cache contents are grouped. Default 'default'. 275 * @param bool $force Optional. Unused. Whether to force an update of the local cache 276 * from the persistent cache. Default false. 277 * @param bool $found Optional. Whether the key was found in the cache (passed by reference). 278 * Disambiguates a return of false, a storable value. Default null. 279 279 * @return mixed|false The cache contents on success, false on failure to retrieve contents. 280 280 */ … … 304 304 305 305 /** 306 * Retrieves multiple values from the cache .307 * 308 * @since 309 * 310 * @param array $keys Array of keys to fetch.311 * @param bool $force Optional. Unused. Whether to force a refetch rather than relying on the local312 * cache. Default false.313 * 306 * Retrieves multiple values from the cache in one call. 307 * 308 * @since 5.5.0 309 * 310 * @param array $keys Array of keys under which the cache contents are stored. 311 * @param string $group Optional. Where the cache contents are grouped. Default empty. 312 * @param bool $force Optional. Whether to force an update of the local cache 313 * from the persistent cache. Default false. 314 314 * @return array Array of values organized into groups. 315 315 */
Note: See TracChangeset
for help on using the changeset viewer.