Changeset 53767 for trunk/src/wp-includes/cache.php
- Timestamp:
- 07/23/2022 02:56:51 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/cache.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r53763 r53767 21 21 function wp_cache_init() { 22 22 $GLOBALS['wp_object_cache'] = new WP_Object_Cache(); 23 }24 25 /**26 * Whether the object cache implementation supports flushing individual cache groups.27 *28 * @since 6.1.029 *30 * @see WP_Object_Cache::flush_group()31 *32 * @return bool True if group flushing is supported, false otherwise.33 */34 function wp_cache_supports_group_flush() {35 return true;36 23 } 37 24 … … 297 284 /** 298 285 * Removes all cache items in a group, if the object cache implementation supports it. 299 * Before calling this method, always check for group flushing support using the 300 * `wp_cache_supports_group_flush()` method. 286 * 287 * Before calling this function, always check for group flushing support using the 288 * `wp_cache_supports_group_flush()` function. 301 289 * 302 290 * @since 6.1.0 … … 312 300 313 301 return $wp_object_cache->flush_group( $group ); 302 } 303 304 /** 305 * Determines whether the object cache implementation supports flushing individual cache groups. 306 * 307 * @since 6.1.0 308 * 309 * @see WP_Object_Cache::flush_group() 310 * 311 * @return bool True if group flushing is supported, false otherwise. 312 */ 313 function wp_cache_supports_group_flush() { 314 return true; 314 315 } 315 316
Note: See TracChangeset
for help on using the changeset viewer.