I have a script that performs an update on the backend DB once a day. After the update, Servoy does not see the changes made to the DB.
I know that I can go to the Servoy-Admin page and flush the cache of the clients. If I do this then the changes become visible in all Servoy clients.
Is there any way to flush the cache of the clients programatically? I want to fully automate the daily update process, without the need to make operations in the Servoy-Admin page.
A very easy way to do this is to use something like wget/curl/fetch to get activate the flush in the servoy admin pages. This can be automated easily from a cron like service.
You need access to the servoy repository database (servoy_repository) from whatever scripting environment you are using. The following SQL statement will give you the id:
select solution_id from servoy_solutions where solution_name=‘<solution_name>’;