HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/plugins/wp-super-cache/rest/class.wp-super-cache-rest-get-stats.php
<?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() );
	}
}