Support for configuration of Doctrine query/result caching, closes #1176