WordPress at a glance
function is not described

WP_Super_Cache_Rest_Get_Stats::callback() public WPSCache 1.0

Get the cache stats for the site.

{} It's a method of the class: WP_Super_Cache_Rest_Get_Stats{}

No Hooks.

Return

WP_Error/WP_REST_Response.

Usage

$WP_Super_Cache_Rest_Get_Stats = new WP_Super_Cache_Rest_Get_Stats();
$WP_Super_Cache_Rest_Get_Stats->callback( $request );
$request(WP_REST_Request) (required)
Full data about the request.

Code of WP_Super_Cache_Rest_Get_Stats::callback() WPSCache 1.7.1

<?php
public function callback( $request ) {
	global $valid_nonce;
	$_GET[ 'listfiles' ] = 1;
	$valid_nonce = true;

	return rest_ensure_response( wp_cache_regenerate_cache_file_stats() );
}