Details
Description
The old result cache should be reintroduced as hydration cache, since it obviously is much faster than just result caching by avoiding hydration.
$users = $this->_em->createQuery($dql) ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) ->getResult();