OpenWGA 7.7 - TMLScript reference

QueryResult
Property :

servedFromCache

On object QueryResult
Usage Returns if the query result was served from the WGAPI query cache
Description

When attribute "cache:true" was given to the query then the result may be served from the query cache. This property being true indicates that it was served like that. This property being false means that the cache did not exist or was stale and that the query had to be executed. The cache may have been filled by this execution.

This is the same as retrieving taginfo "cacheused" from <tml:query>.

Return value true if the query result was served from cache (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events