OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Caching oddities when using both the mobile app and browser interfaces › Reply To: Caching oddities when using both the mobile app and browser interfaces
Samer
That is odd because if you look at the code that is saving a new program, the very end will send the new program to the controller, wait for a confirmation it’s done, request the updated program list from the controller, then tell you it’s done saving the program.
Code: https://github.com/OpenSprinkler/OpenSprinkler-App/blob/master/www/js/main.js#L7228-7236
I have selected the specific lines so you can see what I am referring to. You will notice the first call to sendToOS which just sends a request to OpenSprinkler. The done callback after calls updateControllerPrograms and it’s callback will change the page and show the message “Program added successfully”
Therefore, I am not sure what is causing the discrepancy you are seeing however I can say it is not common. At least this is the first I am hearing of the issue. Let us know if you find anything further or a way for me to replicate it. I am using Chrome on OS X and have never had this issue.