Q:

How to cache specific parts of page in PHP intelligently?

Problem:
I've a website which has 50k+ pages and most of them are only updated once on the creation time, I am building a caching for these pages as they do not need any frequent changes on the content. But I'm confuse about few things.

If I cache whole page, how do i preserve User Login/Logout status in sidebar
How do I cache the meta tags for the page as main caching is done in the middle of page as this is most expensive part as far processing is concerned.

A:

Take a look at the Cache_Lite PEAR module.

