From my research, it seems that APCClassLoader does not cause Symfony2 to cache the YAML files used in Doctrine. It seems that the default configuration files are cached (config.yml, parameters.yml), but the actual ORM YAML files used by Doctrine are not cached unless you specify a cache driver, as shown in the documentation below:
http://symfony.com/doc/2.3/reference/configuration/doctrine.html#caching-drivers
So, it is possible that the solution above solved the problem if the poster had only the YAML configuration and not the YAML doctrine. However, if Doctrine YAML is involved, you must specify the Doctrine cache driver.
This also affects people using annotations, as they will be parsed every time the page loads, unless a cache driver is specified (except for the default array cache of Doctrine).
I think I should post a message because it is a complex problem, and the answer above was misleading in my case when the Doctrine ORM YAML files were the source of the caching problem.
This post has more details about my specific issue and resolution:
Why does Symfony2 spend 70-90% of its time analyzing YAML?
source share