-
Notifications
You must be signed in to change notification settings - Fork 278
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
Cache results of parsing URI parameters #982
Labels
Comments
Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/982 |
This was referenced Mar 1, 2012
Closed
This actually came up again on the list the other day—is the idea here that we would stick the results of the parse in a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Menu.param allows you to define a parser and an encoder for a URI parameter. The parser is a good place to retrieve an item from a database and automatically get a 404 if it is not found, but the parsing is performed multiple times per request and the result is not cached. As a workaround, you can manually thread the result through a RequestVar. It would be nice to have a caching Menu.param available in Lift out of the box.
The text was updated successfully, but these errors were encountered: