| 13 | |
| 14 | * deleting a [wiki:docs_jobs job] will clear the cached entry |
| 15 | * caveat: if you remove job the backing files with the file manager, the cached results will be corrupted due to missing files |
| 16 | * we should probably address this somehow within the generated application |
| 17 | |
| 18 | == viewing available cached results == |
| 19 | |
| 20 | * a build in module executable is available for displaying cached results |
| 21 | * a template example is shown below |
| 22 | * the important bits to use this module executable are |
| 23 | * keep most of what is shown in the example... you can change, of course, any labels and the module id of this module |
| 24 | * make sure the field id "module" has its default value set to the module id of the module creating the cached results (in this case, "flowinducedvibration" |
| 25 | |
| 26 | {{{ |
| 27 | { |
| 28 | "moduleid" : "cachedresultsfiv" |
| 29 | ,"submitpolicy" : "all" |
| 30 | ,"label" : "Available Results" |
| 31 | ,"resource" : "local" |
| 32 | ,"noreset" : "true" |
| 33 | ,"executable" : "cached_results" |
| 34 | ,"docrootexecutable" : "ajax/sys_config/cached_results.php" |
| 35 | ,"uniquedir" : "on" |
| 36 | ,"submit_label" : "Refresh" |
| 37 | ,"autosubmit" : "true" |
| 38 | ,"nojobcontrol" : "on" |
| 39 | ,"fields" : [ |
| 40 | { |
| 41 | "role" : "input" |
| 42 | ,"id" : "label1" |
| 43 | ,"label" : "Available Results" |
| 44 | ,"type" : "label" |
| 45 | } |
| 46 | ,{ |
| 47 | "role" : "input" |
| 48 | ,"id" : "module" |
| 49 | ,"type" : "hidden" |
| 50 | ,"default" : "flowinducedvibration" |
| 51 | } |
| 52 | ,{ |
| 53 | "role" : "output" |
| 54 | ,"label" : "" |
| 55 | ,"id" : "outhtml" |
| 56 | ,"type" : "html" |
| 57 | } |
| 58 | ] |
| 59 | } |
| 60 | }}} |