spiceman Posted April 2, 2010 Share Posted April 2, 2010 Not sure if this is a server prob or code prob but here is the scenario: The first load of a php page on the site loads quickly... however, when i refresh the page or access it for a second time then it takes twice as long to load the page... So i am a little puzzled... since the first load is good then i assume the code is optimized... and because it takes long on the second access then i assume its the connection/server... but any specific things i can check? Quote Link to comment https://forums.phpfreaks.com/topic/197384-2nd-page-load-takes-long/ Share on other sites More sharing options...
freakstyle Posted April 7, 2010 Share Posted April 7, 2010 what happens the third, fourth, fifth, nth... you should be testing this more then a few requests, while also keeping track of each one's request time. you can also write a little timing call to output the script time at different points in the script, which helps isolate areas in the script that cause increased time. test with a simple html file too, see if you get the same behavior. get in there and start seeing whats happening, you need a bit more data to find the issue you may be having. perhaps you are looking at it using IE 5.5 on a virtual windows ME instance using a macbook pro clone... that might cause an issue. Quote Link to comment https://forums.phpfreaks.com/topic/197384-2nd-page-load-takes-long/#findComment-1038074 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.