fixes #3313 - on enable/disable logging also set cache enabled/disabled
Merge pull request #3743 from marco-dev/fixLocalActivatedFlag

fixes #3313 - on enable/disable logging also set cache enabled/disabled