New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PhpArrayAdapter to cache metadata #1186
Comments
I think this is done already using recipes? And Edit: actually it uses |
This is not entirely true. Moreover it should be warmed up before using. Usually it's using in prod env as a decorator above configured adapter and warming up on bootstrap. |
And you say using |
I used APCu and No wonder the Symfony uses it in prod in Validator, Serializer and Annotation components 😉 |
|
Metadata caching looks like the case when we can use |
So what about my proposal? I have an example implementation, do I need to create a PR? Or we don't need this and close the issue? |
What's your actual proposal? Cache via PhpArrayAdapter by default, or what? Because that's not very useful when flex recipe overrides that, such change should go there instead. |
I propose to cache via |
The way I see it, this proposal would be accepted, but 2 conditions need to be met:
|
@ostrolucky I couldn't find any description for branches so I can't decide which branch create PR to? |
master, please |
I propose to cache metadata using PhpArrayAdapter the same way as serializer or validator in Symfony.
I've added it in my project and got 1-2% speed up on production.
If the communtity approve this, I will create a PR.
The text was updated successfully, but these errors were encountered: