Forum Moderators: coopster

Message Too Old, No Replies

Faster loading using static html

         

kkonline

3:16 pm on Aug 3, 2009 (gmt 0)

10+ Year Member



Hi,
I am working on a sql-query intensive homepage and have decided to grab the php output to a html and store it for 5 mins and whenever the user writes mysite.com i just display the readily available html file.

Can you help me work on this concept with ideas and suggestions?

eelixduppy

3:08 am on Aug 5, 2009 (gmt 0)



The idea sounds good, and this method is used frequently. The other solution, of course, would be to use the browser cache and just set an expiration time for each of your pages for, say, 5 minutes so the browser knows which version to use. Either way is an effective way to cache control, however.

penders

12:45 pm on Aug 5, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...use the browser cache and just set an expiration time for each of your pages for, say, 5 minutes so the browser knows which version to use.

However, if your site is using cookies, it's unlikely you're going to be able to get your pages to cache client-side (images and other resources yes).