$WBCACHE is available for use with all WBSP commands.
code - WhizBase code snippet that should be cached
time - period of validity of cached content
uniqueID - part of code that uniquely identifies the snippet (see example below)
Cached content if it is not expired (older than specified time) or executed code if it is.
When opened for the first time, this script will run sub report titles.sr and generate cache for every record. During next 300 seconds, any request for this script will return cached content, instead of running sub report titles.sr. We used $wbf[PubID] as unique identifier for cached content, because WhizBase would return the same cached content for all records if we did not.