Jump to content

Recommended Posts

Hi.

 

Using Apache/2.2 + PHP/5.2, my web application runs very slow when users access the very first webpage.

 

The first webpage takes 5-10 to load and users see the messages:

"Connecting" > "Read" > "Waiting for foo.com" > "Transferring from foo.com" > "Connecting" > "Read" > ...

 

I inserted some PHP code to log the script speed with 'microtime' function, and I get (in the very bottom of the webpage):

<!-- 0.13374590873718 sec. (Page Ends) -->

 

The second time I access this page, I get:

<!-- 0.55434894561768 sec. (Page Ends) -->

 

It takes more time to be executed, but it loads faster!

 

Any similar experience? I use Smarty template engine.

Doesn't sound like  php issule to me.. but if it is it should be posted in third party (as its smarty related)

 

to me it sounds like a large file (maybe image) loading into cache,

theirs a few other things but i think the large image or connecting to remote files is likely.

if you can post a link we could take a look.

Thank you very much for your answer.

 

Doesn't sound like  php issule to me.. but if it is it should be posted in third party (as its smarty related)

Yep, I posted it on the Smarty forum, but I was told it doesn't look like a Smarty issue.

 

to me it sounds like a large file (maybe image) loading into cache,

You mean the webbrowser cache, don't you? It could be, since the homepage includes a SWF file :)

 

theirs a few other things but i think the large image or connecting to remote files is likely.

we include a lot of Ajax.

 

if you can post a link we could take a look.

It's within an Intranet, sorry :(

Yep.. the SWF would do it, check the filesize of everything that loads on the firstpage, maybe clear cache and test, then remove the link to the swf then clear cache and test,

 

yes i mean client/browser cache

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.