I have a VF page that calls a search method from my class using Javascript Remoting. I found that the very first call for the day takes a very long time, and often goes over the timeout (I currently have it set to the max 2 mins).;
After that very first call, all others take a second or less.
It seems maybe something is being cached, and rebuilding that cache in the morning takes a long time? Any of you guys run into this issue before and any thoughts on how to fix?
This is an ongoing project, and so far when I need to demo, I would make sure I run through the page first before showing it to others. But here have been some times when a user loaded the page in the morning before I got to it, and they ran into the slow first call.
Thanks