The code below works great in the developer , however when I run the code in the client it does not work. Basically, I am clearing the user servoy cache. I keep running in to issues where my clients are not getting the latest release of the solution. This seems to be a way to correct that. I have this code in my solution close function so that the cache will be cleared every time the solution is closed. If there is a better way please inform, but the code below should do the trick.
var home = plugins.file.getHomeDirectory()+"\\.servoy";
home = utils.stringReplace(home,'\\','/');
var done = plugins.file.deleteFolder(home,false);
Doesn’t it have to do with the user’s rights, or even the rights that the user has granted the java client?
Do you have anything in the logs? Does the plugin offer some way to catch Exceptions?
I would try to set the log level to debug or trace for a moment and see if there is anything related to it in the logs.
Or ask the user to open its console and see if there is any Exception logged there, that might help!
If you experience issues with users not getting the latest version of your solution, I suggest you file a case for this in our support system.
Resorting to such hacks as clearing the user’s cache is not an effective way to deal with the problem (for example because it means that the user has to download everything on each consecutive start of the solution.
I am aware that this clears the clients cache of solutions. However, when you are developing and one client has this version another this version.It get’s pretty frustrating trying to test when you have different versions of issues that you’ve already corrected. I just wanted a sure fire way to make sure my clients are getting the latest release. I had a client that would not update until I wiped out the .servoy folder. Before filing a support ticket are there any settings that I am missing, or is there a right way to access the client. I currently use: