Improve GA/consent manager detection by not restricting to curl and caching result #20000
Labels
Enhancement
For new feature suggestions that for example enhance Matomo's cabapilities..
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
Currently we are restricting the request to use curl https://github.com/matomo-org/matomo/pull/19957/files#diff-105cf795eee08d8e19b4daf399977e29fbbf8b3d5d2b6995e06d0909e0b68785R116, whereas we can just use
sendHttpRequest()
. Let's switch it to use that unless there is reason not to?Also can we make sure to cache the result for say 4+ weeks or forever or something? Then we don't try to request the data every time which would make these pages and widgets etc quite slow. Ideally, we would even mostly update the cached result only in the background (or store it forever).
The text was updated successfully, but these errors were encountered: