I have created a cronjob which will create or update a number of products(around 2000 products, runs cron 2 times in a day). When the cron runs and update the products data, huge amount of "cache-invalidated" logs are written to debug.log file which largely increases the size of the debug.log. My system is in production mode. How can we block the system generated "cache-invalidated" logs.
It appears there's an open issue for being able to change the verbosity of these messages: https://github.com/magento/magento2/issues/4362
In the meantime, there is a suggestion on this stackoverflow post on how to override the code to disable these particular notices: https://magento.stackexchange.com/a/177368/26