Jump to content

caching only sections of a webpage


yeehawjared

Recommended Posts

I'm building a website that serves dynamic content.  I followed this guide to cache each page:

http://www.ilovejackdaniels.com/php/caching-output-in-php/

 

The only problem is that I have a user login at the top of every page, and I'd like to keep it this way.

 

http://www.guitarvideotabs.com/home.php  - example of the page in question.  I'd like to cache only the main content.. basically everything but the div "logintop"

 

Any links to php caching tutorials / howto's would be greatly appreciated, I'm a noob with php caching.  Thanks guys.

 

Link to comment
https://forums.phpfreaks.com/topic/44080-caching-only-sections-of-a-webpage/
Share on other sites

seems like this could help me:  caching with smarty

http://www.phpfreaks.com/smarty_manual/page/caching.html

 

Seems like that'd work... only problem is that I don't have root access to the box.  I'm using dreamhost to host my site.  I downloaded and extracted it.  Seems to be working.  Now to get my pages cached.

 

If anyone knows of any better ways to selectively cache php/mysql sites please post.  Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.