Templates: Generalized CachedTemplate class
Jesus M. Castagnetto (contact me)
A generalized parsed template caching mechanism, that can work with a variety of existing template classes.
The latest version can always be found at the CachedTemplate class site, there you can download also all the examples with their respective include files and templates.
New version 1.1 - includes support for PHPLIB's Template class and the use of GET query string in the document caching
New version 1.2 - Added a more general way of dealing with variables that the user may want to be used in writing/reading/validating cached documents, also added support for external data validation (using a timestamp or md5 hash)
New version 1.2.1 - Bug fix in the read_from_cache, which appeared when using use_get or use_vars w/ the "in_name" option
New version 1.2.2 - typo fix in the $release var, affected old version of PHP3; fixed typos in documentation
New version 1.3(unreleased) - added support for a file locking mechanism to
avoid race conditions
New version 1.4 - support for reading from a cached file, useful when doing a
partial caching of content (see partial_caching.php for an example)
Click here for detailed information about this class on phpclasses.org
???
The CachedTemplate class (version 1.4)
???
Template Adaptor class for FastTemplate
???
Template Adaptor for HTML Template class
???
Adaptor class for PHPLIB's Template class
???
Template adaptor for the QuickTemplate class
???
Template adaptor for Richard's Template class
???
Template adaptor for the XTemplate class
???
example of using external data validation using an md5 hash
???
Example of external data validation using data timestamp
???
Example using the FastTemplate class
???
Example using HTML Template class
???
Example of using get_from_cache to implement partial caching
???
Example using the PHPLIB'x Template class
???
Use by phplibtemplate_example.php
???
used by phplibtemplate_example.php
???
Example using the QuickTemplate class
???
Example using Richard's Template class
???
data file used by the examples datavalid_example[12].php
???
Example of using the use_get() method w/ the default option
???
Example of using the use_get() method w/ the "store" option
???
example of the user_vars() method