Added a very nifty caching system for filesystem templates. Apparently, the main...
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Feb 2007 02:26:59 +0000 (02:26 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Feb 2007 02:26:59 +0000 (02:26 +0000)
commit8401d312ab39fcc05836f571ade7d913b80c48cf
tree819f8c52afe389369eb8e508ec7ccd9ce83b35df
parentd2a3035dbd589a9d8339b358a5ef6dff7a9ad2a5
Added a very nifty caching system for filesystem templates. Apparently, the main most time is spent in the actual processing of templates (parsing language and conditionals). This system works by polling the database cache (which stores the fully compiled templates) and checks to make sure that the filesystem files aren't actually updated. If they are, it updates the cache, and if they aren't it just returns the database copy. The process only works on templates called in cache() and not in lazy-loading in fetch().
template_fs.php