diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-06-26 03:00:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 03:00:00 +0300 |
commit | 69ced1716928b7ca47b43b726acc8ed8b3c1ca67 (patch) | |
tree | 21d64c3163a957d86e1ad8b2206dc65d179d14b0 /config | |
parent | bc17e1e1ae8d6bbee5799cf86f1b7ed64eb7516f (diff) |
Configure device detector cache through DI (#16115)
Diffstat (limited to 'config')
-rw-r--r-- | config/global.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/global.php b/config/global.php index 5499b0920a..9737896f82 100644 --- a/config/global.php +++ b/config/global.php @@ -79,6 +79,8 @@ return array( 'Piwik\Translation\Loader\LoaderInterface' => DI\object('Piwik\Translation\Loader\LoaderCache') ->constructor(DI\get('Piwik\Translation\Loader\JsonFileLoader')), + 'DeviceDetector\Cache\Cache' => DI\object('Piwik\DeviceDetector\DeviceDetectorCache')->constructor(86400), + 'observers.global' => array(), /** |