Skip to main content
flashofscarlet
Inspiring
July 10, 2009
Answered

[Help!] Do ASC files cache?

  • July 10, 2009
  • 1 reply
  • 998 views

Hi!

I have FMS 3.x developer version installed on my machine and it is working fine.. till.. I start using ASC files.

As long as I am with client side code, I have no issues. For some functionality addition, I needed to use an ASC file. To test the connection, I created an ASC file which has the following code:


application.onAppStart = function()  { 
this.allowDebug = true; 

  

application.onConnect = function(client){ 
     application.acceptConnection(client);
   
    client.callFromClient = function(clientStr) { 
         return "Hello "+clientStr; 
    } 
}

If I make any change to the above code, it doesnt reflect until I restart my FMS server. For example, if I am changing the return "Hello".. to return "Hi".. I need to restart FMS to see it work!

Pls help!

    This topic has been closed for replies.
    Correct answer

    That behavior is expected, as FMS compiles the application at runtime. In the case of main.asc, you have to restart the application instance for changes to take effect. You don't need to restart the server, you can use the FMS Admin console to restart the specific application instance.

    1 reply

    Correct answer
    July 10, 2009

    That behavior is expected, as FMS compiles the application at runtime. In the case of main.asc, you have to restart the application instance for changes to take effect. You don't need to restart the server, you can use the FMS Admin console to restart the specific application instance.

    flashofscarlet
    Inspiring
    July 13, 2009

    Thank you, Jay!