Modifying a script with a embeded function
Posted: 20 Apr 2017 23:46
Does XY cache the code of a function based on its name?
I have a script used in a custom column, called via load "script" that has a function (no include statements or anything in the script).
When I modify the script the function does not adapt to the changes I made to the script file.
If I change the function name within the script it works. It is similar to the include/include_once where you modify the underlying script, but doesn't take effect until you reload XY.
Is there a way to clear the cache, force unloading of the script functions? is there a tweak to unload the script functions after the last function call.
I guess it has been done for speed, but when you are creating/debugging a function it would be nice to see the amendments without unloading XY or changing the function name.
Unless I am missing something, which is very possible.
I have a script used in a custom column, called via load "script" that has a function (no include statements or anything in the script).
When I modify the script the function does not adapt to the changes I made to the script file.
If I change the function name within the script it works. It is similar to the include/include_once where you modify the underlying script, but doesn't take effect until you reload XY.
Is there a way to clear the cache, force unloading of the script functions? is there a tweak to unload the script functions after the last function call.
I guess it has been done for speed, but when you are creating/debugging a function it would be nice to see the amendments without unloading XY or changing the function name.
Unless I am missing something, which is very possible.