Say, this module is installed on a multi-site Drupal installation. The admin will then have to execute the optimization on each site manually, which is not practical. In my installation, there are 220+ websites.
Create a drush command: drush optimizedb:optimize
Needs review
1.0
Code