I'm running a site on an IIS7 server running the .NET 2.0 Framework. I am having an interesting problem. When I load the site in IE7 after some period of inactivity (without any changes to the source code), the pages load extremely slow, almost as if it is recompiling itself. As soon as a particular page loads once, that page will then load quickly from that point forward. So in order for the entire site to run quickly, i have to click into each section, wait through the slow loading and then that section will run fine. I can change search criteria on pages that hit my DB and still everything is as it should be ie. good performance. However, after some period of inactivity, perhaps greater than an hour, the pages load very slow again for the first time.
I'm wondering if there is something I need to tweak to prevent this from happening. I'm also wondering if this is occuring at the application level (only affects the first user hitting the site after inactivity) or on a session by session level (this will happen to each user hitting the site after they have been inactive)
Recently, I made some tweaks to the services running on my machine to try to increase the performance of my machine itself (my computer is also my development environment), however I'm quite sure I didn't disable anything that has to do with this issue.