1
0
Fork 0
mirror of https://github.com/Findus23/plugin-ClassicCounter.git synced 2024-09-19 15:23:45 +02:00

fix cache not being used

This commit is contained in:
Lukas Winkler 2021-04-17 22:02:42 +02:00
parent 196377a85a
commit d59c486c2a
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -61,7 +61,7 @@ class Controller extends \Piwik\Plugin\Controller
}
$cache = Cache::getLazyCache();
$cacheKey = "ClassicCounter_Data_" . $idSite;
if ($cache->contains($cacheKey) && false) {
if ($cache->contains($cacheKey)) {
$visitData = $cache->fetch($cacheKey);
} else {
$visitData = ClassicCounter::getVisitorData($idSite);