-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Incorrect documentation for caching #4970
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
Comments
The first argument should be the expression itself, which is missing here. I sent a PR fixing it |
So, if I understand correctly : if I want to optimize an expression evaluation by serializing it, for example in database, I have to keep both the serialized parsed expression and the expression to be able to use it with |
@Elendev yes, because the expression object must be able to give the original expression when being casted as string. |
@stof ok I understand, thank you for the explanation |
The last example of the Expression language caching section (https://github.com/symfony/symfony-docs/blob/2.6/components/expression_language/caching.rst) doesn't work :
The
SerializedParsedExpression
constructor requires a$nodes
parameters.I'm not really sure on how to do it the right way.
The text was updated successfully, but these errors were encountered: