Jump to content

Very slow loading of homepage etc


vidmarc
 Share

Recommended Posts

It took eight seconds for my request, but all the images came in at standard timings.

So, that means it's somewhere between the web server giving the request to PHP and PHP delivering the output back to the web server for delivery.

Between the above two points, PHP is waking up (unless it is FastCGI in which case PHP is probably already awake), CubeCart waking up, fetching the data from the database, rendering the skin, and spitting out the final content.

By far, the most time consuming event is rendering the skin from the templates. This is where enabling the cache (admin, Store Settings, Advanced tab) helps -- mostly.

One point you can check is to make sure that the folder /cache/skin/ has files in it. If no files, then (file-based) cache is disabled, or the folder does not have the correct CHMOD permissions to hold cached templates.

The only true way to determine the bottleneck is to run a CacheGrind analysis against a PHP session. You would need to have complete control over the server hosting your site to install this.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...