framework icon indicating copy to clipboard operation
framework copied to clipboard

Cache results of parsing URI parameters

Open szeiger opened this issue 13 years ago • 6 comments

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.

szeiger avatar Apr 21 '11 05:04 szeiger

Updating tickets (#919, #938, #950, #956, #976, #980, #982, #999, #1008, #1024, #1025, #1032, #1034, #1051)

indrajitr avatar Jul 21 '11 00:07 indrajitr

Updating tickets (#950, #956, #976, #980, #982, #999, #1008, #1053, #1078, #1092, #1097)

Pushed pending tickets to 2.4-M5

indrajitr avatar Sep 09 '11 01:09 indrajitr

Updating tickets (#956, #976, #980, #982, #1008, #1053, #1078, #1092, #1097, #1128)

indrajitr avatar Nov 11 '11 05:11 indrajitr

Updating tickets (#906, #950, #956, #960, #976, #980, #982, #997, #999, #1008, #1053, #1078, #1090, #1092, #1097, #1128, #1134, #1155, #1168)

indrajitr avatar Dec 22 '11 19:12 indrajitr

Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/982

github-importer avatar Feb 19 '12 21:02 github-importer

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 TransientRequestVar?

Shadowfiend avatar May 11 '14 23:05 Shadowfiend