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. *