Review Board 1.5.4

Issue 437 -- allow one-shot functions that are only fired once

Updated 1 year, 8 months ago

David Pollak Reviewers
dpp, marius, charles, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb, dlouwers, mstarzyk, rmellgren, jhoffman, probinett, jmadsen, mhartmann, jstrachan, jgoday
None LiftWeb-archive
https://liftweb.assembla.com/spaces/liftweb/tickets/437-mechanism-to-abstract-over-retried-ajax-calls

dpp_issue_437

Functions can be marked as oneShot and they will only be fired once, but their response will be cached such that if the function is fired again, it will return the same response, but without any side effects.

I did not make this the default, although post 2.0, we can add a flag to make it the default for Ajax.

I updated TestKit based on actually using it and added a method to disable test-mode function name generation
Added tests for the feature.  The tests pass.
Ship it!
Posted 1 year, 8 months ago (June 2nd, 2010, 11:44 p.m.)
I like the idea, but I'm a little worried about the potential cache growth .. post 2.0