WordPress at a glance
class is not described

WP_Super_Cache_Rest_Get_Stats{} WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

$WP_Super_Cache_Rest_Get_Stats = new WP_Super_Cache_Rest_Get_Stats();
// use class methods

Methods

  1. callback( $request )

Code of WP_Super_Cache_Rest_Get_Stats{} WPSCache 1.7.3

<?php
class WP_Super_Cache_Rest_Get_Stats extends WP_REST_Controller {

	/**
	 * Get the cache stats for the site.
	 *
	 * @param WP_REST_Request $request Full data about the request.
	 * @return WP_Error|WP_REST_Response
	 */
	public function callback( $request ) {
		global $valid_nonce;
		$_GET[ 'listfiles' ] = 1;
		$valid_nonce = true;

		return rest_ensure_response( wp_cache_regenerate_cache_file_stats() );
	}
}