wp_cache_add_to_buffer()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Code of wp_cache_add_to_buffer() WPSCache 1.8

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