date & unix time added to HTML comment validation
This commit is contained in:
parent
d1b52a61f5
commit
90f5d4947f
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ function wp_ffpc_callback( $buffer ) {
|
|||
$mtime = explode ( " ", microtime() );
|
||||
$wp_ffpc_gentime = ( $mtime[1] + $mtime[0] )- $wp_ffpc_gentime;
|
||||
|
||||
$insertion = "<!-- \nWP-FFPC \n\tcache engine: ". $wp_ffpc_config['cache_type'] ."\n\tpage generation time: ". round( $wp_ffpc_gentime, 3 ) ." seconds\n-->\n";
|
||||
$insertion = "\n<!-- \nWP-FFPC \n\tcache engine: ". $wp_ffpc_config['cache_type'] ."\n\tpage generation time: ". round( $wp_ffpc_gentime, 3 ) ." seconds\n\tgeneraton UNIX timestamp: ". time() . "\n\tgeneraton date: ". date( 'c' ) . "\n-->\n";
|
||||
$index = stripos( $buffer , '</body>' );
|
||||
|
||||
$buffer = substr_replace( $buffer, $insertion, $index, 0);
|
||||
|
|
Loading…
Reference in a new issue