From 1f2753aa2af2ae98b7bb5dfc6b15546c705b7bbc Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Tue, 3 Jul 2018 00:29:55 +0200 Subject: Only show segments based on log_visit table in GDPR search (#13123) * Only show segments based on log_visit table in GDPR search * fix typo * cs --- plugins/API/API.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/API') diff --git a/plugins/API/API.php b/plugins/API/API.php index b00ff6526f..ca2f1d5de3 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -177,17 +177,17 @@ class API extends \Piwik\Plugin\API $sites = (is_array($idSites) ? implode('.', $idSites) : (int) $idSites); $cache = Cache::getTransientCache(); - $cachKey = 'API.getSegmentsMetadata' . $sites . '_' . (int) $_hideImplementationData . '_' . (int) $isNotAnonymous; - $cachKey = CacheId::pluginAware($cachKey); + $cacheKey = 'API.getSegmentsMetadata' . $sites . '_' . (int) $_hideImplementationData . '_' . (int) $isNotAnonymous; + $cacheKey = CacheId::pluginAware($cacheKey); - if ($cache->contains($cachKey)) { - return $cache->fetch($cachKey); + if ($cache->contains($cacheKey)) { + return $cache->fetch($cacheKey); } $metadata = new SegmentMetadata(); $segments = $metadata->getSegmentsMetadata($idSites, $_hideImplementationData, $isNotAnonymous); - $cache->save($cachKey, $segments); + $cache->save($cacheKey, $segments); return $segments; } -- cgit v1.2.3