wp_cache_add_to_buffer()
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() wp cache add to buffer code WPSCache 1.12.4
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 -->"; }