mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user