Skip to content
Snippets Groups Projects
Commit ec4b83c4 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

don't cache methods if a problem occurs

parent 362f9584
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ public class ExperimentApi {
}
@ApiOperation(value = "List available methods and validations", response = String.class)
@Cacheable("methods")
@Cacheable(value = "methods", unless = "#result.getStatusCode().value()!=200")
@RequestMapping(path = "/methods", method = RequestMethod.GET)
public ResponseEntity listAvailableMethodsAndValidations() throws IOException {
LOGGER.info("List available methods and validations");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment