Provide cache capacities for build an generators

Duplicate enhancement from symfony2admingenerator/AdmingeneratorGeneratorBundle#802