Showing results for 
Search instead for 
Did you mean: 

huge size of debug.log file

huge size of debug.log file

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.


Re: huge size of debug.log file

It appears there's an open issue for being able to change the verbosity of these messages:


In the meantime, there is a suggestion on this stackoverflow post on how to override the code to disable these particular notices:

If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!