Ok, everyone knows that we can flush Mondrian cache manually.
How: Inside Pentaho User Console, Tools -> Refresh -> Mondrian Schema Cache. After few moments, if everything is right we get message: 'Mondrian Schema Cache Flushed Successfully'.
Ok, what was done down there? 'Mondrian Schema Cache Flushed Successfully' is predefined string for English locale if request returns code 200 (OK). According to this we know that click on it is calling some HTTP request method.
What and where? I'm using Live HTTP Headers plugin in Google Chrome browser. It tells me that PUC is calling:
- GET /pentaho/api/mantle/isAuthenticated (and if response is OK?)
- GET /pentaho/api/system/refresh/mondrianSchemaCache
If second request return code 200 (OK), PUC write message.
You can try it in your browser: hostname:port/pentaho/api/system/refresh/mondrianSchemaCache
It will clear your schema cache and stay blank page. If you want message, you can write script to collect response from HTTP request.