An Object Oriented Caching Approach
Today I announce a minor release of my latest object oriented beauty. Inspired by the earlier mentioned caching method in PHP i decided to rewrite it as a reusable class.
SimpleCacher is a class written in PHP aimed at providing an object oriented caching method for (X)HTML-pages otherwise generated by querying a database-backend along with the execution of intense PHP applications. The idea is to provide a clean and extendable way to set up caching procedures for webpages.
- GZIP compressed cache (sends the GZIP compressed cache file directly to the client, if possible)
- Strips down the cache file to contain only a single line of (X)HTML
- Redundant error checking forces the original content to be displayed in case the cache method breaks