Cache API: Make the placement of wp_cache_flush_group() more consistent.
Includes: * Placing `WP_Object_Cache::flush_group()` next to `::flush()`. * Placing `wp_cache_supports_group_flush()` next to `wp_cache_flush_group()`. * Placing the `wp_cache_flush_group()` unit test next to the `::flush()` method test. * Removing test name from assertion messages, as it is already mentioned directly above in case of failure. * Adjusting function descriptions per the documentation standards. Follow-up to [52706], [53763]. See #55647, #4476. Built from https://develop.svn.wordpress.org/trunk@53767 git-svn-id: http://core.svn.wordpress.org/trunk@53326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -145,8 +145,9 @@ endif;
|
||||
if ( ! function_exists( 'wp_cache_flush_group' ) ) :
|
||||
/**
|
||||
* Removes all cache items in a group, if the object cache implementation supports it.
|
||||
* Before calling this method, always check for group flushing support using the
|
||||
* `wp_cache_supports_group_flush()` method.
|
||||
*
|
||||
* Before calling this function, always check for group flushing support using the
|
||||
* `wp_cache_supports_group_flush()` function.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
@@ -175,7 +176,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_cache_supports_group_flush' ) ) :
|
||||
/**
|
||||
* Whether the object cache implementation supports flushing individual cache groups.
|
||||
* Determines whether the object cache implementation supports flushing individual cache groups.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user