CachedFastTemplate is a simple PHP template to extend CDI's Fastemplate Class. It implements methods to cache pages created from documents, allowing different pages to have assigned different cache lifetimes. It requires the FastTemplate package.
What's New in This Release Version 1.1 CachedFastTemplate:
- Mainly changed to recognize if the the file calling this class or the templates have been modified.
- Added some logic, so the same template can be used for storing a cached template for seconds/minutes/hours/days added 2 new methods: set_time_unit and _is_valid_time_unit, and renamed internal methods (the ones with names prefixed by "_"), from _mkdatestamp to _mktimestamp, and from_diff_days to _diff_time, renamed/modified also some internal variables in methods.