It is as as soon as I remove this code page load fast. Also I added this code on line 117 then it start giving same error for line 107 and others. So do I add same code on each of these lines?
It is as as soon as I remove this code page load fast. Also I added this code on line 117 then it start giving same error for line 107 and others. So do I add same code on each of these lines?
Hmmm, yes well, <speculation> without the added code the server will effectively 'die' when it reaches that part of the code, or at the very least, not have all it needs to continue the processing, so it would stand to reason that it would return back to the caller function a lot quicker with the error than if it had all it needed and was able to continue its normal processing.
I'm not saying this *IS* the case or the reason, but it is almost certainly one of the possible things you haven't considered.
Sorry, but I can't really answer this with any degree of confidence. I don't have the code in front of me. I do see mention of both of these line numbers in the earlier posts in this thread that would seem to imply that the 'fix' needs to be applied in each instance that has the problem though.
The fact that it (apparently) started to give the same error on a different line (117) after taking care of the problem in line 107 would tend to support my speculation that the reason the 'fix' is making things slower really is because it is now getting to process more of the code, and this being the case, and going back to your original question of "Any idea how to change it so it does not take long to load?" the answer will be "you can't". It isn't that the fixes are making it slower, it is that the fixes are making it *work* - and work always seems to take a lot more time than not having to work. :-)
Cheers
RodG