Add page index parse time header

This commit is contained in:
Starbeamrainbowlabs 2015-10-25 20:59:21 +00:00
parent bab0f67da0
commit 8fc527fc07
2 changed files with 4 additions and 0 deletions

View File

@ -652,7 +652,9 @@ if(!file_exists("./pageindex.json"))
}
else
{
$pageindex_read_start = microtime(true);
$pageindex = json_decode(file_get_contents("./pageindex.json"));
header("x-pageindex-decode-time: " . round(microtime(true) - $pageindex_read_start, 6) . "ms");
}
// Work around an Opera + Syntaxtic bug where there is no margin at the left hand side if there isn't a query string when accessing a .php file

View File

@ -343,7 +343,9 @@ if(!file_exists("./pageindex.json"))
}
else
{
$pageindex_read_start = microtime(true);
$pageindex = json_decode(file_get_contents("./pageindex.json"));
header("x-pageindex-decode-time: " . round(microtime(true) - $pageindex_read_start, 6) . "ms");
}
// Work around an Opera + Syntaxtic bug where there is no margin at the left hand side if there isn't a query string when accessing a .php file