diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-12-08 23:22:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 23:22:36 +0300 |
commit | 93f35d9f45dbc0285e3c27c0955cfd4041f5aa18 (patch) | |
tree | e566fa6e94987a692d87321c172c723a3d3aaa9c | |
parent | 919036ceaa30d2db990f87f036d9952f72b9a6d3 (diff) |
More efficient page performance request processor (#16913)
fix https://github.com/matomo-org/matomo/issues/16912
-rw-r--r-- | plugins/PagePerformance/Tracker/PerformanceDataProcessor.php | 14 |
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(); |