Idea: Add config option to enable/disable statistics
Closed this issue · 2 comments
grommasdietz commented
It would be nice to have a kirby config option to enable/disable statistics. This would easily avoid counts on development.
We could disable on local environments (e.g. config.example.test.php
):
'arnoson.kirby-stats' => [
'enabled' => false,
],
And enable it on server (e.g. config.example.tld.php
):
'arnoson.kirby-stats' => [
'enabled' => true,
],
arnoson commented
Sounds great! Do you wan't to create a PR? Otherwise I can look into this as soon as I find some time. I guess the best place for this check would be in the handle method where we also check for logged in users
grommasdietz commented
Created a pull request!