magento-2-smtp icon indicating copy to clipboard operation
magento-2-smtp copied to clipboard

Improve memory efficiency in cleaning up logs

Open ioweb-gr opened this issue 1 year ago • 0 comments

We've stumbled into a case where the module would run out of memory if the emails sent were too many like (400k) in our case. By the time the cleanup cron tried to clean them, it would run out of memory.

I've used collection pagination to reduce the strain of this cleanup cron job.

ioweb-gr avatar Jul 27 '22 10:07 ioweb-gr