NumberFour/mcollective-plugins — comment on commit e7356ec12a35a4279a8ae8590d3391c9f8acbeee
File:  line 0
By jbraeuer:

I also thought about it, but it felt like over-engineering. I never needed anything more, than the "yum clean expire-cache". So one could also argue to just change the "yum clean all" into "yum clean expire-cache".

But as I dont know what other people do out there, I added it as separate function.

I would definately add the "mode"-option, when there is a second cleaning mode for apt or a third one for yum. But until then, I think this is the simplest solution.