We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6a0703 + ee9c9a0 commit 4b1593bCopy full SHA for 4b1593b
1 file changed
libraries/classes/DatabaseInterface.php
@@ -204,11 +204,14 @@ public function tryQuery(
204
205
$result = $this->extension->realQuery($query, $this->connections[$connectionType], $options);
206
207
+ if ($connectionType === Connection::TYPE_USER) {
208
+ $this->lastQueryExecutionTime = microtime(true) - $time;
209
+ }
210
+
211
if ($cacheAffectedRows) {
212
$GLOBALS['cached_affected_rows'] = $this->affectedRows($connectionType, false);
213
}
214
- $this->lastQueryExecutionTime = microtime(true) - $time;
215
if ($debug) {
216
$errorMessage = $this->getError($connectionType);
217
Utilities::debugLogQueryIntoSession(
0 commit comments