It doesnt appear to be possible to provide cache driver options to the
AnnotationReader in the AnnotationLoader class. It also seems that the
validator doesnt cache the metadata classes once generated (like Doctrine
does, at least).
So in short, I dont think you can. You can however, enable APC or memcached
cache drivers for Doctrine2:
doctrine.orm:
metadata_cache_driver: apc
query_cache_driver: apc
result_cache_driver: apc
*Note: you'll need to clear your cache when you make changes to entities!
Best leave it off unless you're in production.*
Replace apc with memcached and you'll have yourself a memcached setup,
though there are additional configuration options to configure (host, port,
etc) which you can find keys for in the DoctrineBundle/Resources/config
directory.
t
On Mon, Sep 27, 2010 at 09:46, Dennis Jacobfeuerborn <
[email protected]> wrote:
> From what I can see no caching is used at all. How can I tell Symfony
> which cache driver it is supposed to use?
>
> On Sep 25, 5:51 am, Tim Nagel <[email protected]> wrote:
> > Are you running memcached or apc cache drivers for annotations or using
> the
> > array cache? Annotations will be parsed every request when using the
> default
> > array cache.
> >
> > t
> >
> > On 25/09/2010 1:38 PM, "Dennis Jacobfeuerborn" <
> [email protected]>
> > wrote:
> >
> > I'm using PR3 and 95% of the request time increase seems to be spent
> > in the parsing of the annotations.
> >
> > On Sep 24, 3:39 pm, Fabien Potencier <fabien.potenc...@symfony-
> >
> > project.com> wrote:
> > > If you use a sandbox from before PR3, that's because there was an HTTP
> > > call ...
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en