wpsc_admin_bar_delete_cache_ajax()WPSCache 1.0

Delete cache for a specific page.

No Hooks.

Return

null. Nothing.

Usage

wpsc_admin_bar_delete_cache_ajax();

Code of wpsc_admin_bar_delete_cache_ajax() WPSCache 1.8

function wpsc_admin_bar_delete_cache_ajax() {
	// response output
	header( "Content-Type: application/json" );
	if ( ! wpsc_delete_cache_directory() ) {
		if ( defined( 'WPSCDELETEERROR' ) ) {
			return json_decode( constant( 'WPSCDELETEERROR' ) );
		} else {
			return json_decode( false );
		}
	}
}