WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php// Include the WB functions filerequire_once(WB_PATH.'/framework/functions.php');if(file_exists(WB_PATH.'/temp/'.page_filename($_SERVER['REQUEST_URI']).'.tmp') && filemtime(WB_PATH.'/temp/'.page_filename($_SERVER['REQUEST_URI']).'.tmp') >= (time()-86400)) { #header('HTTP/1.1 304 Not Modified'); exit(file_get_contents(WB_PATH.'/temp/'.page_filename($_SERVER['REQUEST_URI']).'.tmp'));} else {ob_start('cache_temp');?>
<?php ob_end_flush();}function cache_temp($buffer) { file_put_contents(WB_PATH.'/temp/'.page_filename($_SERVER['REQUEST_URI']).'.tmp',$buffer); return $buffer;}?>