With a follow-up to their previous templating article, DevShed has posted Part 2 of the "Building a Template Parser Class with PHP" series of articles.
In part one of this two part article series, you learned how to build a simple template parser class in PHP. In this second article, you will learn how to add caching capabilities to the class.
Welcome to the second part of the article "Building a Template Parser class with PHP." In the first part of the article, I've hopefully demonstrated that building a simple template parser class is not as intimidating as it seems. Given the flexibility and power that PHP offers, it's possible to implement efficient applications without scratching our heads.
They build on the foundation provided in the first article, expanding the class they created to add a new feature - caching. With the ability to cache your pages (post-templating), not only will it speed up the overall execution of your site, but it will make it easier for you to include code that would process more slowly each time it was called.




