Make it possible to disable flush event through configuration
Merge pull request #571 from tPl0ch/feature-flush-event

Make it possible to disable flush event through configuration