mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-151: Cache driver is instantiated multiple times #184
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 16, 2009).
Jira issue originally created by user nicokaiser:
A cache driver that is added to the configuration of an EntityManager (e.g. \Doctrine\ORM\Configuration::setMetadataCacheImpl) is instantiated multiple times, so Annotations are parsed way too often, which degrades performance...
@doctrinebot commented on GitHub (Nov 16, 2009):
Comment created by nicokaiser:
This is especially bad for non-persistent caches like ArrayCache. Class annotations are parsed more than once during the lifetime of the EntityManager...
@doctrinebot commented on GitHub (Nov 16, 2009):
Comment created by romanb:
Care to elaborate a bit? Where and why is it instantiated multiple times? You must have found out about this some way so this would be very helpful information.
@doctrinebot commented on GitHub (Nov 17, 2009):
Comment created by nicokaiser:
Sorry, this was my own fault, so this is not a bug.
@doctrinebot commented on GitHub (Nov 17, 2009):
Issue was closed with resolution "Invalid"