wpsc_ajax_get_preload_status()WPSCache 1.0

Serves an AJAX endpoint to return the current state of the preload process.

No Hooks.

Returns

null. Nothing (null).

Usage

wpsc_ajax_get_preload_status();

wpsc_ajax_get_preload_status() code WPSCache 3.0.0

function wpsc_ajax_get_preload_status() {
	$preload_status = wpsc_get_preload_status( true );
	wp_send_json_success( $preload_status );
}