Changeset 54448 for trunk/src/wp-includes/cache.php
- Timestamp:
- 10/10/2022 06:20:28 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r53767 r54448 286 286 * 287 287 * Before calling this function, always check for group flushing support using the 288 * `wp_cache_supports _group_flush()` function.288 * `wp_cache_supports( 'flush_group' )` function. 289 289 * 290 290 * @since 6.1.0 … … 303 303 304 304 /** 305 * Determines whether the object cache implementation supports flushing individual cache groups.305 * Determines whether the object cache implementation supports a particular feature. 306 306 * 307 307 * @since 6.1.0 308 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; 309 * @param string $feature Name of the feature to check for. Possible values include: 310 * 'add_multiple', 'set_multiple', 'get_multiple', 'delete_multiple', 311 * 'flush_runtime', 'flush_group'. 312 * @return bool True if the feature is supported, false otherwise. 313 */ 314 function wp_cache_supports( $feature ) { 315 switch ( $feature ) { 316 case 'add_multiple': 317 case 'set_multiple': 318 case 'get_multiple': 319 case 'delete_multiple': 320 case 'flush_runtime': 321 case 'flush_group': 322 return true; 323 324 default: 325 return false; 326 } 315 327 } 316 328
Note: See TracChangeset
for help on using the changeset viewer.