diff options
Diffstat (limited to 'plugins/DevicesDetection/DevicesDetection.php')
-rw-r--r-- | plugins/DevicesDetection/DevicesDetection.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DevicesDetection/DevicesDetection.php b/plugins/DevicesDetection/DevicesDetection.php index dc915e359f..c6c9262f05 100644 --- a/plugins/DevicesDetection/DevicesDetection.php +++ b/plugins/DevicesDetection/DevicesDetection.php @@ -13,9 +13,9 @@ use DeviceDetector\Parser\Device\DeviceParserAbstract AS DeviceParser; use DeviceDetector\DeviceDetector; use Exception; use Piwik\ArchiveProcessor; -use Piwik\CacheFile; use Piwik\Common; use Piwik\Db; +use Piwik\DeviceDetectorCache; use Piwik\Piwik; use Piwik\Plugin\ViewDataTable; use Piwik\WidgetsList; @@ -245,7 +245,7 @@ class DevicesDetection extends \Piwik\Plugin $UAParser = new DeviceDetector($userAgent); $UAParser->discardBotInformation(); - $UAParser->setCache(new CacheFile('tracker', 86400)); + $UAParser->setCache(new DeviceDetectorCache('tracker', 86400)); $UAParser->parse(); $deviceInfo['config_browser_name'] = $UAParser->getClient("type") == 'browser' ? $UAParser->getClient("short_name") : 'UNK'; $deviceInfo['config_browser_version'] = $UAParser->getClient("type") == 'browser' ? $UAParser->getClient("version") : 'UNK'; |