Page 1 of 1

Template Caching

Posted: Sat Jul 07, 2007 3:20 pm
by Charles256
So I am writing my own template class. I've gotten to the point of adding in external css, inline css, external and inline javascript, title, doctype, body, a set footer, all the good basics essentially. The next issue I come up to is the issue of caching. Is caching realistically possible on dynamic sites? I need to explain to the class at runtime when and how to execute caching but my mind isn't quite figuring out the best way how. It may be available on google ( i've searched ) so if it's something common or if someone knows of a good article just give me a link or a google search term and I'll do my own searching. Many thanks.

Re: Template Caching

Posted: Sat Jul 07, 2007 10:14 pm
by alex.barylski
Charles256 wrote:So I am writing my own template class. I've gotten to the point of adding in external css, inline css, external and inline javascript, title, doctype, body, a set footer, all the good basics essentially. The next issue I come up to is the issue of caching. Is caching realistically possible on dynamic sites? I need to explain to the class at runtime when and how to execute caching but my mind isn't quite figuring out the best way how. It may be available on google ( i've searched ) so if it's something common or if someone knows of a good article just give me a link or a google search term and I'll do my own searching. Many thanks.
Absolutely! Is it difficult? Absolutely.

Effective caching usually requires a solid understanding of the system you are trying to speed up. Are your pages dynamic only in generation/compilation? Are they dynamically interactive, in the sense that you will allow people to post blog comments or add classified listings?

I need more details before I can suggest a effective caching technique. :)