From 16ffd36f5dd91490962c9e3f433081defb1816d6 Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Wed, 10 May 2023 14:00:01 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/object-cache.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/phpunit/includes/object-cache.php b/tests/phpunit/includes/object-cache.php index 2bea171f19..ad7920f731 100644 --- a/tests/phpunit/includes/object-cache.php +++ b/tests/phpunit/includes/object-cache.php @@ -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. *