Yes fix that error.
The size of the initial page of your site (which is the homepage when you hit your url for the first time) is roughly 225KB because of the js (prototype & scriptaculous) and css files (style.css)
That's why it takes so long when you visit the home page for the first time. I had the same problem too a while back and had to cut down by compressing them.
Look up compressing these js and css files, so you can load up the compressed versions rather than the bulkier versions.

Femi

Larry E. Masters aka PhpNut wrote:
This is your problem:

Warning (2): mysql_fetch_array(): supplied argument is not a valid MySQL result resource [CORE/app/controllers/pages_controller.php, line 106]

Fix that and the pages should load faster.

Also with debug > 0 errors like this will cause pages to load very slow.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Wed, Apr 16, 2008 at 1:36 PM, Indian Baker <[EMAIL PROTECTED]> wrote:

Hi Guys,
We've built a site using cake 1.2x and it works fine overall..
The only issue is the homepage takes a really long time to load..
We are using the following helpers, html, _javascript_, ajax, and form
since all of them are needed there.. but any idea what makes the site
take so much time to load.. the other inner page load fast and if you
come back to the homepage it loads fast.. its only the first time that
you visit the site or visit after clearing your cache and cookies that
it takes so long to load.
I've enabled debug so you can see that the querying part is taking
only a couple of  milli secs. no idea what could be wrong.. I even
trying caching the display view, but that too doesnt seen to help

the site is http://www.tveed.com

Any help would be appreciated

Thanks in advance

PS: there is a mysql_fetch error right now which we'll fix.. but I
dont think that could be one of the issues for the slow loading..





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to