Skip to content
Snippets Groups Projects
Commit 41f3d16f authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

observing request time before sending output to user

parent d7aac054
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,7 @@ class MetaGerSearch extends Controller
$counter = $registry->getOrRegisterCounter('metager', 'query_counter', 'counts total number of search queries', []);
$counter->inc();
$query_timer->observeTotal();
// Splitting the response return into multiple parts.
// This might speed up page view time for users with slow network
$responseArray = str_split($resultpage->render(), 1024);
......@@ -159,7 +160,6 @@ class MetaGerSearch extends Controller
echo ($responsePart);
flush();
}
$query_timer->observeTotal();
}
public function searchTimings(Request $request, MetaGer $metager)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment