Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-12-08 23:22:36 +0300
committerGitHub <noreply@github.com>2020-12-08 23:22:36 +0300
commit93f35d9f45dbc0285e3c27c0955cfd4041f5aa18 (patch)
treee566fa6e94987a692d87321c172c723a3d3aaa9c
parent919036ceaa30d2db990f87f036d9952f72b9a6d3 (diff)
More efficient page performance request processor (#16913)
fix https://github.com/matomo-org/matomo/issues/16912
-rw-r--r--plugins/PagePerformance/Tracker/PerformanceDataProcessor.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/PagePerformance/Tracker/PerformanceDataProcessor.php b/plugins/PagePerformance/Tracker/PerformanceDataProcessor.php
index 54471db6ea..f3877a3a92 100644
--- a/plugins/PagePerformance/Tracker/PerformanceDataProcessor.php
+++ b/plugins/PagePerformance/Tracker/PerformanceDataProcessor.php
@@ -47,13 +47,6 @@ class PerformanceDataProcessor extends RequestProcessor
return;
}
- $idLinkVa = $this->getPageViewId($idVisit, $pageViewId);
-
- // ignore requests
- if (empty($idLinkVa)) {
- return;
- }
-
/** @var ActionDimension[] $performanceDimensions */
$performanceDimensions = [
new TimeNetwork(),
@@ -77,6 +70,13 @@ class PerformanceDataProcessor extends RequestProcessor
return; // no values to update given with the request
}
+ $idLinkVa = $this->getPageViewId($idVisit, $pageViewId);
+
+ // ignore requests
+ if (empty($idLinkVa)) {
+ return;
+ }
+
Log::info('Updating page performance metrics of page view with id ' . $pageViewId);
$model = new Model();