1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

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