Quote:
Originally Posted by VBCoder
If I create a new template, how do make sure it gets cached, and how do I call it from the cache?
|
By putting it in the $globaltemplates array, you don't need to call it from cache.
Quote:
Originally Posted by VBCoder
How does vB know when the cache needs to be updated? Especially since the templates usually depend on the user's variables?
|
Templates dont really get cached. They are just already read from database all at the same time in a single query when the script starts. If you use an 'uncached' (ie not read from database on script start) template, then for each template an additional query is needed when the template os first used.
Quote:
Originally Posted by VBCoder
What exactly does the datastore do?
|
Store data

The datastore is mostly used to store a serialized copy of the data from amy rows into a single datastore row.