OK thanks!
Matthieu Le 09/01/2014 12:49, Marco Pivetta a écrit : > Yes, you don't need the annotation cache if you are already caching mappings, since you won't hit the annotation driver again. The cached reader is mostly useful for when you don't use annotations for mappings. > > Marco Pivetta > > http://twitter.com/Ocramius [3] > > http://ocramius.github.com/ [4] > > On 9 January 2014 10:46, Matthieu Napoli <[email protected]> wrote: > >> Here is my configuration code: >> >> $cachedAnnotationReader = new CachedReader(new AnnotationReader(), $cache); >> $doctrineConfig->setMetadataDriverImpl($cachedAnnotationReader); >> >> $doctrineConfig->setMetadataCacheImpl($cache); >> >> I came up with that code after reading the documentation, but it seems the cache is being used twice? Can I just skip the CachedReader? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups "doctrine-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/doctrine-user [1]. >> For more options, visit https://groups.google.com/groups/opt_out [2]. > > -- > You received this message because you are subscribed to a topic in the Google Groups "doctrine-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/doctrine-user/lOeXoKYkf6c/unsubscribe [5]. > To unsubscribe from this group and all its topics, send an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user [1]. > For more options, visit https://groups.google.com/groups/opt_out [2]. Links: ------ [1] http://groups.google.com/group/doctrine-user [2] https://groups.google.com/groups/opt_out [3] http://twitter.com/Ocramius [4] http://ocramius.github.com/ [5] https://groups.google.com/d/topic/doctrine-user/lOeXoKYkf6c/unsubscribe -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/groups/opt_out.
