Forum Moderators: phranque

Message Too Old, No Replies

Caching with Apache or PHP

         

CWebguy

5:43 am on Mar 21, 2009 (gmt 0)

10+ Year Member



Sorry if this has been answered before.

I'm looking for an easy way to cache pages and even more specifically dynamic parts of a webpage that access a database such as a sidebar or footer. Can someone point me in the right direction of what I should need to look at?

Thanks a bunch.
CWebguy "Here to help"

eeek

11:35 pm on Mar 23, 2009 (gmt 0)

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



You could use squid (http://www.squid-cache.org/) in accelerator mode as a front end.

g1smd

11:53 pm on Mar 23, 2009 (gmt 0)

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



Since 'includes' are included into the page within the server and then the page is sent as a whole once that has been done, I see no way to cache part of the HTML of an HTML page. You would cache the whole page.

You can cache the images, CSS and JS files, and that would have a greater impact than those small bits of HTML code ever could.