Tests: Move wp_cache_flush_runtime() next to wp_cache_flush().

This matches the function's placement in `wp-includes/cache.php` and brings more consistency.

Follow-up to [52772], [55741].

See #57841.

git-svn-id: https://develop.svn.wordpress.org/trunk@55742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
SergeyBiryukov
2023-05-10 14:00:01 +00:00
parent c204a6aa27
commit 16ffd36f5d

View File

@@ -312,6 +312,16 @@ function wp_cache_flush( $delay = 0 ) {
return $wp_object_cache->flush( $delay );
}
/**
* Removes all cache items from the in-memory runtime cache.
*
* @return bool True on success, false on failure.
*/
function wp_cache_flush_runtime() {
global $wp_object_cache;
return $wp_object_cache->flush_runtime();
}
/**
* Determines whether the object cache implementation supports a particular feature.
*
@@ -332,16 +342,6 @@ function wp_cache_supports( $feature ) {
}
}
/**
* Removes all cache items from the in-memory runtime cache.
*
* @return bool True on success, false on failure.
*/
function wp_cache_flush_runtime() {
global $wp_object_cache;
return $wp_object_cache->flush_runtime();
}
/**
* Retrieves object from cache.
*