So that calc was always executed no matter what, even worse if you would do:
- Code: Select all
function mycalc()
{
var x = myothercalc;
var y = myothercalc;
}
then myothercalc is really called and executed twice..
There where also other side effects because if myothercalc would return something that is not directly its type (so it is declared as a number but you (sometimes) return a string)
it would be a string in the calc that calls it, but if you would call it directly from normal scripting or from the ui it would be a number.. because we do the conversion then.
So that is what we fixed, by making sure it always goes through the cache, but this seems to have a side effect in your case.
I can think of a quick fix, but that would still mean that the calcs with the SP would be called twice, because if they really are accessed at the same time by 2 threads i just execute them twice, so i am still thinking what the best fix would be.