Makes tracking faster by detecting many devices, operating systems, bots, and browsers from a cache.
Makes device detection in Matomo faster by having cached entries for recently seen user agents.
By default, Matomo runs thousands of regular expressions for each tracking request to detect what Browser, Device, Operating system, ... is being used and to detect if a user agent is a bot or not.
This plugin changes this by first looking if a cached result exists for the particular user agent and if so, directly loads the result from the cache.
The difference to the existing
DeviceDetectorCache plugin is that this plugin doesn't need any setup. No need to learn user agents
from a log file.
For us, this speeds up the tracking request by a factor of 5x.
You should be using redis for caching. The plugin might also work with file based caching, but we have not tested that.
You can configure these values in your
[DynamicDeviceDetectorCache] cache_ttl_in_seconds = 300