You can use the REST API to clear the cache information (of the model) held by Wagby. It is a good idea to call this API when updating the database directly from the outside. R7.4.2

Specify the primary key in the URL and acquire detailed data.

@RequestMapping(value="/rest/${modelid}/clearcache/{pkey}", method=POST)

URL Example

http://localhost:8921/wagby/rest/customer/clearcache/1000 POST

response

STATUS=200 OK

{
   "errors": {
       "jfcdebug": [],
       "jfcerror": [],
       "jfcinfo": [],
       "jfcwarn": []
   },
   "clearcache_state": "clearone",
   "status": "showJnews.input",
   "pkey": "1000"
}

If you do not specify a primary key, all caches in that model will be cleared.

@RequestMapping(value="/rest/[modelid]/clearcache", method=POST)

URL Example

http://localhost:8921/wagby/rest/customer/clearcache POST

response

STATUS=200 OK

{
   "errors": {
       "jfcdebug": [],
       "jfcerror": [],
       "jfcinfo": [],
       "jfcwarn": []
   },
   "clearcache_state": "clearall",
   "status": "showJnews.input",
   "pkey": null
}