Loading time of a cakePhp project.

11 Jul

Well, today I m gonna talk about another shit that I faced recently.

Sometimes its not good to have some talents customers who really understand and identify your problems…hahaha…i know I sound like a nerd…….but this findings helped me to reorganize  loading time of my site….

well let me tell u guys the whole story……..

When I launched my site it seemed very slow. My buyer said sometime it takes two minutes to load!! Holly shit.

Then I notice each time I am loading a dynamic menu where I am executing so many Database query and during execution of my database request cake joining 32 tables to manager foreign   key and killing my time.
Oh! Man my life became hell. My stupid dead line was knocking my door but my loving cake became fool like me, all forums also didn’t understand my problem. I was just sit before my pc and just rush to search holding my development.

At the death moment if found the light end of the tunnel. I add an option in admin panel. When admin will add data then I write the total html output in a file and when the page load I just simply include the file with my script. Then it brought a magical change in my website and I could reduce eighty percent loading time.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: