Hi tribui,
vlibTemplate works by compiling your templates into native PHP code, i.e.:
tmpl_var name=myVar
.. becomes something like:
?php echo $this-_vars'myVar'; ?
(this isn't the exact string at all, just an example, the real thing is alot more complicated)
Now vlibTemplate uses PCRE to search for all TMPL_* tags and replaces them with the correct PHP representation. This 'compiled' code is then parsed to PHP's eval() function to let PHP do all the hard work.
Now if you use vlibTemplateCache, it will only need to compile the file once, it will then write the compiled code to a file which it can then use on subsequent request thus by-passing the PCRE call.
Therefore this does NOT cache the actual output of your code, just the compiled template.
If you use vlibTemplate without the caching fuctionality then the time taken to serve your pages depends very much so on how many <tmpl_* > tags you have in your template as it has to search for each one every time. However with vlibTemplateCache, you don't have to bother and you can therefore knock seconds (for real) off of the time taken to serve a page.
I hope this answers your question.
Kind regards,
Kelvin
PS: Any help with vLIB is greatly appreciated.