you should also add the cache for the validation metadata: https://github.com/symfony/symfony-standard/blob/master/app/config/config_prod.yml#L4-6