diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-02 02:43:26 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-02 02:43:26 +0400 |
commit | 8f77c16a52fc1832bccb140784b492100bca2b75 (patch) | |
tree | b2e3c749604ba24cc7868f5dd32f3fd94d26cb88 /core/Plugin/Dimension | |
parent | aca7be43178cd78e858fdc1d4e351c461ac07587 (diff) |
wondering how this effects the tracking performance? added possibility to persist static cache for tracker
Diffstat (limited to 'core/Plugin/Dimension')
-rw-r--r-- | core/Plugin/Dimension/VisitDimension.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Plugin/Dimension/VisitDimension.php b/core/Plugin/Dimension/VisitDimension.php index 3bd94693de..b07c6e32ca 100644 --- a/core/Plugin/Dimension/VisitDimension.php +++ b/core/Plugin/Dimension/VisitDimension.php @@ -17,6 +17,7 @@ use Piwik\Plugin\Segment; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; use Piwik\Tracker\Action; +use Piwik\Tracker; use Piwik\Translate; /** @@ -180,7 +181,7 @@ abstract class VisitDimension extends Dimension return -1; } - if (!empty($fields) && in_array($b->getColumnName(), $fields)) { + if (in_array($b->getColumnName(), $fields)) { return 1; } |