Annotation of parser3/tests/cache/page.html, revision 1.1

1.1     ! moko        1: # ^cache under parallel requests, called by run_tests.sh, the parameters are in the query string:
        !             2: #   expires, extend - the lifespan and $.extend in seconds
        !             3: #   sleep           - how long the code runs
        !             4: #   fail            - the code throws
        !             5: #   text            - what the code returns
        !             6: #   cache           - the cache file name, cache.bin by default
        !             7: 
        !             8: @main[]
        !             9: $file[^if(def $form:cache){$form:cache}{cache.bin}]
        !            10: ^if(def $form:extend){
        !            11:        ^cache[$file][ $.expires($form:expires) $.extend($form:extend) ]{^body[]}
        !            12: }{
        !            13:        ^cache[$file]($form:expires){^body[]}
        !            14: }
        !            15: 
        !            16: # every run is logged, to count them
        !            17: @body[]
        !            18: $run[run^#0A]
        !            19: ^run.save[append;runs.txt]
        !            20: ^sleep($form:sleep)
        !            21: ^if(def $form:fail){^throw[test;;generation failed]}
        !            22: $result[$form:text]

E-mail: