wp_cache_add_to_buffer()
No Hooks.
Returns
null. Nothing (null).
Usage
wp_cache_add_to_buffer( $buffer, $text );
- $buffer(required) (passed by reference — &)
- .
- $text(required)
- .
wp_cache_add_to_buffer() wp cache add to buffer code WPSCache 3.1.1
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 ( wpsc_skip_debug_output( $buffer ) ) {
wp_cache_debug( site_url( $_SERVER['REQUEST_URI'] ) . ' - ' . $text );
return false;
}
$buffer .= "\n<!-- $text -->";
}