wpsc_admin_bar_delete_cache_ajax()WPSCache 1.0

Delete cache for a specific page.

Хуков нет.

Возвращает

null. Ничего.

Использование

wpsc_admin_bar_delete_cache_ajax();

Код wpsc_admin_bar_delete_cache_ajax() WPSCache 1.7.9

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 );
		}
	}
}