Merge pull request #18297 from kamil-tekiela/measure-time-only-for-user-queries
Measure time only for user queries
This commit is contained in:
commit
ee9c9a0300
@ -218,11 +218,14 @@ class DatabaseInterface implements DbalInterface
|
|||||||
|
|
||||||
$result = $this->extension->realQuery($query, $this->links[$link], $options);
|
$result = $this->extension->realQuery($query, $this->links[$link], $options);
|
||||||
|
|
||||||
|
if ($link === self::CONNECT_USER) {
|
||||||
|
$this->lastQueryExecutionTime = microtime(true) - $time;
|
||||||
|
}
|
||||||
|
|
||||||
if ($cache_affected_rows) {
|
if ($cache_affected_rows) {
|
||||||
$GLOBALS['cached_affected_rows'] = $this->affectedRows($link, false);
|
$GLOBALS['cached_affected_rows'] = $this->affectedRows($link, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lastQueryExecutionTime = microtime(true) - $time;
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
$errorMessage = $this->getError($link);
|
$errorMessage = $this->getError($link);
|
||||||
Utilities::debugLogQueryIntoSession(
|
Utilities::debugLogQueryIntoSession(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user