wp_cache_add_to_buffer()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

wp_cache_add_to_buffer( $buffer, $text );
$buffer (required) (passed by reference — &)
-
$text (required)
-

wp_cache_add_to_buffer() code WPSCache 1.11.0

function wp_cache_add_to_buffer( &$buffer, $text ) {
	global $wp_super_cache_comments;

	if ( false == isset( $wp_super_cache_comments ) ) {
		$wp_super_cache_comments = 1;
	}

	if ( $wp_super_cache_comments == 0 ) {
		return false;
	}

	if ( strpos( $buffer, '<html' ) === false ) {
		wp_cache_debug( site_url( $_SERVER['REQUEST_URI'] ) . ' - ' . $text );
		return false;
	}

	$buffer .= "\n<!-- $text -->";
}